redux-persist-filesystem-storage
redux-persist-filesystem-storage copied to clipboard
After closing the application, the data is not saved
Android version: 12 "react-native": "0.66.3" "redux-persist-filesystem-storage": "^4.1.0" "react-native-blob-util": "^0.16.0"
While working with the application - everything is fine, the data is saved. I close the application - the data is cleared
have you solved this issue?
+1
@robwalkerco any comment on this.
I'm also facing this issue on android. it's working fine on latest devices or devices with good specification. but on old or low specification devices it cleared data after restart app.
Issue solved
const persistConfig = { key: 'root', storage: FilesystemStorage, timeout: null };
i just add timeout: null
it fixed my issue. it because on slow devices it takes time to read file and default timeout is 5000.