redux-persist-filesystem-storage icon indicating copy to clipboard operation
redux-persist-filesystem-storage copied to clipboard

After closing the application, the data is not saved

Open w4ugit opened this issue 2 years ago • 4 comments

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

w4ugit avatar May 11 '22 14:05 w4ugit

have you solved this issue?

superJunJun avatar Apr 07 '23 10:04 superJunJun

+1

hussnainghani avatar Dec 28 '23 09:12 hussnainghani

@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.

hussnainghani avatar Dec 28 '23 10:12 hussnainghani

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.

hussnainghani avatar Jan 03 '24 11:01 hussnainghani