Move onboarding state to new persistence + reducer context (#1835)
This commit is contained in:
parent
3a211017d3
commit
4afed4be28
14 changed files with 199 additions and 167 deletions
|
@ -27,7 +27,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
|
|||
setState(persisted.get('colorMode'))
|
||||
updateDocument(persisted.get('colorMode'))
|
||||
})
|
||||
}, [setStateWrapped])
|
||||
}, [setState])
|
||||
|
||||
return (
|
||||
<stateContext.Provider value={state}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue