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
localStorage values are limited to 10Mb #8337
Comments
The total storage can be over 10MB but a single value cannot be over 10MB. Since |
Thanks, @kevinsawicki . I'm using the redux-localstorage enhancer, which stores part of the app state in serialized JSON as a single key-value. It's not a common case, but with the current implementation I'm working on, it can exceed 10 Mb. |
I have the same use case as mentioned by @nunomluz. My app's state is stored in localstorage. The app state is rehydrated upon initialization based on the stored state. |
You can use this library, I worked very well in our project. |
Could anyone tell me how to start going about writing a patch for this in the upstream chromium package? It looks like it's related to these: Update: Actually, it looks like the value might be defined here, so we ought to be able to at least increase it to a very large number, if not modify the quota enforcement logic. |
BTW, is the reason that |
Looks like this should be fixed in master (#14104), but I am still seeing it in |
localStorage is still limited to 10Mb. After running a few tests, it throws a:
Also reported in issue 897, which is closed.
Expected behavior
No limit/quota
Actual behavior
Limited to 10Mb
How to reproduce
Run
localStorage.setItem('data', (new Array(11*1024*1024)).join("x"));
The text was updated successfully, but these errors were encountered: