Replies: 1 comment
-
As far as I know, there is currently no exposed API to rehydrate the store manually. Rehydration is attempted whenever |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building an Expo (react-native) app that has a background task that needs to update state. I have persist working so that the both the main application and the background job both pull from the same storage.
The problem I'm encountering is where the main application starts and rehydrates, then goes into a backgrounded state, whereupon a background task will set some state and persist it; unfortunately, the main app still has it's state in memory. What I'd like to do is be able to programmatically rehydrate a store every time the app goes from a backgrounded to an active state. Is there a way to do that?
Beta Was this translation helpful? Give feedback.
All reactions