Closed leonardo2204 closed 5 years ago
@leonardo2204 I'm not really sure as I haven't been using redux a lot lately. I've moved this discussion here since this is actually where we'd need to make changes. There's more info regarding PersistGate here: https://github.com/infinitered/ignite-redux-persist/issues/8
Unfortunately since we don't use redux at IR nearly as much anymore this has been very low priority for us. We would absolutely welcome a PR implementing this though 😄
@ryanlntn Thank you very much for the other issue, it solved my problem!
As per the redux-persist docs we can have the following:
But in the boilerplates, we persist things inside the Rehydration
updateReducers
function, which isasync
.So, it's kinda tricky to return the
persistor
from this function and use it later on, because every other callers would have to beasync
too.What approach do you think that works best for this use case?
Thanks guys!