Open Aleksandern opened 9 months ago
Hi @quarrant Do you still maintain this project? Or maybe you know an alternative "mobx persistent" package?
Hello! I'm not sure this issue about mobx-persist-store if it works well with mobx-react@7 but doesn't work with mobx-react@9. You can try to check localForage after resetUser and see real persisted data.
I'm not sure if it's related to 'mobx-persist-store', but maybe somebody can advise me. The issue is I can't set the value to 'null' for a field.
On the login page, I call
AuthStore.setUser
and on the logout page I callAuthStore.resetUser
.After I call
AuthStore.setUser
thenthis.user
has the needed value and after I reload the page the needed value is still there. So the persisting is working here.But after I call
AuthStore.resetUser
thenthis.user
is null but after I reload the page then 'this.user' is not null but must be null.That happens only with mobx-react@9 mobx-react@7 works fine.