Skip to content

react-native - Does not persist in background #1323

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

Open
cristianoccazinsp opened this issue Jul 24, 2021 · 5 comments
Open

react-native - Does not persist in background #1323

cristianoccazinsp opened this issue Jul 24, 2021 · 5 comments

Comments

@cristianoccazinsp
Copy link

Looks like if we initialize the persistor with persistStore(store...) it loads the store correctly, but dispatching actions will not persist the actual changes in HeadlessJS mode (no components get mounted).

Any ideas how to allow the persistor to apply/write changes when in headless mode?

@cristianoccazinsp
Copy link
Author

Update: looks like calls to persist/setItem do not fire while the app is in background.

@cristianoccazinsp
Copy link
Author

PR: #1324

@cristianoccazinsp cristianoccazinsp changed the title react-native in headless mode - store is not persisted react-native - Does not persist in background Jul 24, 2021
@CyxouD
Copy link

CyxouD commented Jun 27, 2022

This still happens in redux-persist 6.0.0

@leonardo-weber
Copy link

problem still happening

@ginieatul
Copy link

Any solution guys...

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

4 participants