You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When this runs, mobx works correctly and the userStore Avatar object has been successfully updated. But when I refresh the page, the data is lost... indicating that mobx persist is not working to persist the store even though the console says 'userStore hydrated' after the hydrate function runs.
What am I doing wrong? Please advise. I cannot get this to work.
The text was updated successfully, but these errors were encountered:
I have a userStore class below.
Later in a different
componentX.js
I have this code
When this runs, mobx works correctly and the userStore Avatar object has been successfully updated. But when I refresh the page, the data is lost... indicating that mobx persist is not working to persist the store even though the console says 'userStore hydrated' after the hydrate function runs.
What am I doing wrong? Please advise. I cannot get this to work.
The text was updated successfully, but these errors were encountered: