persist cache map for cover art

This commit is contained in:
austinried
2021-08-13 16:19:30 +09:00
parent d1824a70be
commit 9cacc4de36
7 changed files with 114 additions and 71 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ export const useStore = create<Store>(
{
name: '@appStore',
getStorage: () => storage,
whitelist: ['settings'],
whitelist: ['settings', 'cache'],
onRehydrateStorage: _preState => {
return async (postState, _error) => {
await postState?.setActiveServer(postState.settings.activeServer, true)