egjs-persist icon indicating copy to clipboard operation
egjs-persist copied to clipboard

If the browser capacity is full, it occurs Quota limit Exceeded error

Open ohute-couture opened this issue 4 years ago • 6 comments

it need to add an error handler please confirm this error

ohute-couture avatar Oct 01 '21 06:10 ohute-couture

@ohute-couture

Hi. I did some research on the code.

I have a few questions

  1. Is the data you want to store very large?
  2. Can you check the state__persist__ of storage before the error occurs? You may send it to me through WORKS.

daybrush avatar Oct 08 '21 11:10 daybrush

@daybrush now I get it

  1. 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.
  2. 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 avatar Feb 14 '22 04:02 ohute-couture

@ohute-couture

Test version 2.5.1.

I have some guesses about the problem.

  1. The stored value for persist is large.
  2. 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

daybrush avatar Feb 14 '22 06:02 daybrush

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 avatar Feb 16 '22 15:02 ohute-couture

@ohute-couture

persist 2.5.2 is released. Check it again.

daybrush avatar Feb 17 '22 08:02 daybrush

I confirmed that it works Thank you

ohute-couture avatar Feb 21 '22 03:02 ohute-couture