rt2zz / redux-persist

persist and rehydrate a redux store
MIT License
12.94k stars 866 forks source link

Error: redux-persist: persist timed out for persist key "root" #1308

Closed djschilling closed 3 years ago

djschilling commented 3 years ago

After upgrading react-native from 0.63.3 to 0.64.1 i get the error Error: redux-persist: persist timed out for persist key "root".

I am using redux-persist version 6.0.0.

I also read this issue but could not find a solution there: https://github.com/rt2zz/redux-persist/issues/717

This is my persist config:

const persistConfig = {
    key: 'root',
    storage: AsyncStorage,
    blacklist: ['fetching'],
    timeout: 20000
};
DracotMolver commented 3 years ago

I'm facing the same. But I don't use AsyncStorage. Anyways, try adding the timeout:null:

const persistConfig = {
  key: 'root',
  storage: FilesystemStorage,
  // There is an issue in the source code of redux-persist (default setTimeout does not cleaning)
  timeout: null,
}
kanish-sharma commented 3 years ago

I'm facing the same. But I don't use AsyncStorage. Anyways, try adding the timeout:null:

const persistConfig = {
  key: 'root',
  storage: FilesystemStorage,
  // There is an issue in the source code of redux-persist (default setTimeout does not cleaning)
  timeout: null,
}

this works for me.. thanks a lot man

djschilling commented 3 years ago

in my case it was an old version of core-js that caused the issue.