mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Fixed: Faster artist endpoint (#874)
* Fixed: Speed up AllArtist API endpoint * New: Display UI before artists have loaded * Add test of new repository methods
This commit is contained in:
parent
698d5e1cf5
commit
0352f8d3ff
18 changed files with 158 additions and 31 deletions
|
@ -4,8 +4,12 @@ import createAllArtistSelector from './createAllArtistSelector';
|
|||
function createArtistCountSelector() {
|
||||
return createSelector(
|
||||
createAllArtistSelector(),
|
||||
(artists) => {
|
||||
return artists.length;
|
||||
(state) => state.artist.error,
|
||||
(artists, error) => {
|
||||
return {
|
||||
count: artists.length,
|
||||
error
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue