Swap order
parent
b0c9cce5c3
commit
60386f8f07
|
@ -376,11 +376,11 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (isDirty.current) {
|
if (isDirty.current) {
|
||||||
|
isDirty.current = false
|
||||||
persisted.write('session', {
|
persisted.write('session', {
|
||||||
accounts: state.accounts,
|
accounts: state.accounts,
|
||||||
currentAccount: state.currentAccount,
|
currentAccount: state.currentAccount,
|
||||||
})
|
})
|
||||||
isDirty.current = false
|
|
||||||
}
|
}
|
||||||
}, [state])
|
}, [state])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue