egjs-persist
egjs-persist copied to clipboard
If the browser capacity is full, it occurs Quota limit Exceeded error
it need to add an error handler please confirm this error
@ohute-couture
Hi. I did some research on the code.
I have a few questions
- Is the data you want to store very large?
- Can you check the state__persist__ of storage before the error occurs? You may send it to me through WORKS.
@daybrush now I get it
- The data we want to store is not large, but depending on the user environment, the browser capacity seems to be small in some cases.
- This error occurs when egjs-persist tries to save the key value. It happens on line 144 of the code attached in issue
@ohute-couture
Test version 2.5.1.
I have some guesses about the problem.
- The stored value for persist is large.
- The values of other previously stored items are large.
So, I want to check the error as follows. https://github.com/naver/egjs-persist#handle-the-error
I checked error when the capacity is exceeded.
There is an error when loading SSR . Please check. This code seems to be cause. https://github.com/naver/egjs-persist/pull/51/files#diff-13e1bbff6f8b004d7f66ddfd1574d7133cad5ed2c9143a9c8d7177715ef9bfb8R34
@ohute-couture
persist 2.5.2 is released. Check it again.
I confirmed that it works Thank you