Remove syncTasks from localStorage to not exceed the quota #2729
Labels
1: Easy
bug
Bug reports
feature request
Requests for new features. Please be as specific as possible and provide proposal API if it you can
P2: Important
Priority mark - still high ;)
Milestone
Current behavior
Adding product to cart fails with the following error.
DOMException: Failed to execute 'setItem' on 'Storage': Setting the value of 'shop/syncTasks/1555264201406-98d5f556-671b-d61e-16c2-74f025933ffb' exceeded the quota.
The chrome storage shows 15.8MB used out of 7702MB storage.
Expected behavior
Should be able to add products to cart successfully.
Steps to reproduce the issue
This happens once the same idle browser window is accessed. The add to cart works in a new incognito browser window for the same product.
Repository
This happens while queuing tasks to local storage in core/lib/sync/index.ts -> queue function
Can you handle fixing this bug by yourself?
Yes if I get some guidance.
Environment details
The text was updated successfully, but these errors were encountered: