reimpl all music state into zustand

This commit is contained in:
austinried
2021-08-03 15:37:07 +09:00
parent 300d0bd1b9
commit 33dc0be02b
11 changed files with 325 additions and 294 deletions

View File

@@ -36,7 +36,7 @@ export const useStore = create<Store>(
whitelist: ['settings'],
onRehydrateStorage: _preState => {
return (postState, _error) => {
postState?.createClient()
postState?.createClient(postState.settings.activeServer)
}
},
},