full reworked images to download (cache) first

This commit is contained in:
austinried
2021-08-13 11:42:25 +09:00
parent 187cce16d9
commit f82a9b55bd
17 changed files with 426 additions and 209 deletions

View File

@@ -45,8 +45,8 @@ export const useStore = create<Store>(
getStorage: () => storage,
whitelist: ['settings'],
onRehydrateStorage: _preState => {
return (postState, _error) => {
postState?.createClient(postState.settings.activeServer)
return async (postState, _error) => {
await postState?.setActiveServer(postState.settings.activeServer, true)
postState?.setHydrated(true)
}
},