Nohac/redux-persist-expo-fs-storage

Issue with build android app

jannikbuschke opened this issue · 2 comments

Hi thanks for your library.
When running my application inside expo persistence works fine.
However when I build the android bundle and execute it as a normal app my redux store always starts with an initial state.

Any ideas what could be wrong?

using

    "expo": "33.0.7",
    "expo-file-system": "5.0.1",
    "redux-persist-expo-fs-storage": "2.0.0",

and

export const persistedRootReducer = persistReducer(
  {
    key: "reduxstore",
    keyPrefix:"",
    stateReconciler: autoMergeLevel2,
    storage: FSStorage(),
  },
  rootReducer,
)
Nohac commented

I'm not entirely sure what the issue is, and I got to admit that I've never used this with redux before (only apollo).
However, did you try to run the persistor to persist the state, then reload the app?

Nohac commented

Closing this issue for now, feel free to reopen if this is still an issue.