Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data not persisting #288

Open
HassanKhan123 opened this issue Oct 10, 2022 · 2 comments
Open

Data not persisting #288

HassanKhan123 opened this issue Oct 10, 2022 · 2 comments

Comments

@HassanKhan123
Copy link

I am working on an extension and I am unable to persist my data in redux. Every time I close the browser or refresh the extension, all my previous gets lost and I have to start all over again.

@tdriley
Copy link

tdriley commented Oct 10, 2022

I believe that by default, the data is stored in memory only and only shared across the extension parts using message communication. If you want to persist across reloads, you need to make your reducer store to extension local or session storage on change, and then check that and load it out on initialisation.

@HassanKhan123
Copy link
Author

I am using redux persist for data persistence but am still not able to save data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants