I've been trying to work out if it is possible to have some code that dispatches an action, and then waits for it to be fully persisted to disk (by redux-persist) before continuing on.
Is something along the lines of the following guaranteed to do what I want? I guess my main thing that isn't clear to me is what state the store is in after the call to dispatch - i.e. whether the persistor will have run by this time.
I've been trying to work out if it is possible to have some code that dispatches an action, and then waits for it to be fully persisted to disk (by redux-persist) before continuing on.
Is something along the lines of the following guaranteed to do what I want? I guess my main thing that isn't clear to me is what state the store is in after the call to dispatch - i.e. whether the persistor will have run by this time.