Closed SMJ93 closed 6 years ago
this issue is related to #13
You can view the merge diff here
So where ever you reference the loadStore
functions currentState
argument, you need to trigger it as a function instead of referencing it as the state object.
so currentState
should actually be something like getCurrentState()
Thanks for the issue, @conor909! You're right, we forgot to change readme. Now it is updated, so you can change your code regarding it – now your loadStore
function should receive function argument instead of an object.
@conor909, @KELiON great thanks guys!
I keep getting the following Redux error when using the
asyncInitialState.outerReducer
function in React Native on first load.If I reload the app it works as expected, loading the state from
AsyncStorage
.Here is our
configureStore
function:If I change
reducer
in thecreateReduxStore
torootReducer
the app will load, but won't load thelocalState
fromAsyncStorage
.There seems to be an issue with the
asyncInitialState.outerReducer
function.