fixed perf issue related to too many rerenders

rerenders were caused by strict equality check on object/array picks
switched artistInfo to new store
updated zustand and fixed deprecation warnings
This commit is contained in:
austinried
2022-03-19 09:52:01 +09:00
parent 47c65ea8cb
commit 13af6555d3
15 changed files with 108 additions and 142 deletions

View File

@@ -166,10 +166,6 @@ export type LibrarySlice = {
albums: ById<Album>
albumSongs: OneToMany
// todo: remove these and store in component state
albumsList: PaginatedList
albumsListSize: number
playlists: ById<Playlist>
playlistSongs: OneToMany
@@ -216,8 +212,6 @@ const defaultEntities = () => ({
artistNameTopSongs: {},
albums: {},
albumsList: {},
albumsListSize: 300,
albumSongs: {},
playlists: {},