Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After closing the application, the data is not saved #63

Open
w4ugit opened this issue May 11, 2022 · 4 comments
Open

After closing the application, the data is not saved #63

w4ugit opened this issue May 11, 2022 · 4 comments

Comments

@w4ugit
Copy link

w4ugit commented May 11, 2022

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

@superJunJun
Copy link

have you solved this issue?

@hussnainghani
Copy link

+1

@hussnainghani
Copy link

hussnainghani commented Dec 28, 2023

@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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants