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
{{ message }}
This repository has been archived by the owner on Mar 13, 2020. It is now read-only.
Hey, I've found this package to be really useful in storing profile info from my id_token into my application state, eliminating the need to constantly decode the token or setup Redux for a fairly simple use-case.
But when my page is refreshed, all my states are reset to the their initialized values. Is there any way to make them persist?
The text was updated successfully, but these errors were encountered:
I think what you are looking for is localStorage. You could add some hooks manually to save the store with store.get() before the page closes. Then when the page is opened again, you could try to read the store from local storage and set it as the initial data when initializing the store. I could also add an option to the API to do this, but not sure when I could get to it.
Hey, I've found this package to be really useful in storing profile info from my id_token into my application state, eliminating the need to constantly decode the token or setup Redux for a fairly simple use-case.
But when my page is refreshed, all my states are reset to the their initialized values. Is there any way to make them persist?
The text was updated successfully, but these errors were encountered: