mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
full reworked images to download (cache) first
This commit is contained in:
@@ -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)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user