Redux-persist: Error storing data

Created on 15 May 2018  路  9Comments  路  Source: rt2zz/redux-persist

screen shot 2018-05-15 at 4 16 49 pm
All of a sudden we are getting this error on Android Only.

\createPersistoid.js - onWriteFail

We are using AsyncStorage in our app.

Most helpful comment

you can override a 6M limit for asyc storage on Android, but depending on your database it might not to be a good option (i had performance issues when rehydrate state when I was close to 6M limit), I ended with sqlite storage

All 9 comments

Same issue on Android

I figured out that the problem occurs when you save an array of data more than 6 megabytes, which is the default size of AsyncStorage @k3ith-fowl3r

Same problem for me too but happening in both iOS and android.. It's happening every time when apps launches, this is happened after adding redux-persist.
simulator screen shot - iphone 6 - 2018-09-29 at 17 08 19

any advice ?

I got this issue when my redux state was too big. By too big I meant +10k items each with couple of properties

how can we fix this issue guys?

you can override a 6M limit for asyc storage on Android, but depending on your database it might not to be a good option (i had performance issues when rehydrate state when I was close to 6M limit), I ended with sqlite storage

Looks like this is an upstream limitation with AsyncStorage.

I had this same error when I cleared AsyncStorage in my debugger tool. Any idea how to fix this? Right now I have to uninstall the app entirely to remedy.

Was this page helpful?
0 / 5 - 0 ratings