mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
store client in state, populate with active server
This commit is contained in:
@@ -34,9 +34,11 @@ export const useStore = create<Store>(
|
||||
name: '@appStore',
|
||||
getStorage: () => storage,
|
||||
whitelist: ['settings'],
|
||||
// onRehydrateStorage: state => {
|
||||
// return (state, error) => {}
|
||||
// },
|
||||
onRehydrateStorage: _preState => {
|
||||
return (postState, _error) => {
|
||||
postState?.createClient()
|
||||
}
|
||||
},
|
||||
},
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user