rt2zz / redux-persist

persist and rehydrate a redux store
MIT License
12.94k stars 866 forks source link

react-native - Does not persist in background #1323

Open cristianoccazinsp opened 3 years ago

cristianoccazinsp commented 3 years ago

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 commented 3 years ago

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

cristianoccazinsp commented 3 years ago

PR: https://github.com/rt2zz/redux-persist/pull/1324

CyxouD commented 2 years ago

This still happens in redux-persist 6.0.0

leonardo-weber commented 1 year ago

problem still happening

ginieatul commented 10 months ago

Any solution guys...