Skip to content

try to clean the old persistented data when storage full - #2851

Merged
TkDodo merged 5 commits into
TanStack:masterfrom
NewFuture:fix-storage-full
Nov 6, 2021
Merged

TkDodo merged 5 commits into
TanStack:masterfrom
NewFuture:fix-storage-full

Conversation

@NewFuture

Copy link
Copy Markdown
Contributor

fix #1701
when storage exceeded the quota.

  1. try to clean the mutations (from old to new by creating time)
  2. try to clean the queries (from old to new by updating time)

@vercel

vercel Bot commented Oct 28, 2021 •

Copy link
Copy Markdown

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tanstack/react-query/9G6eshRnHBpbHWfzGhwPDqwW3A7e
✅ Preview: https://react-query-git-fork-newfuture-fix-storage-full-tanstack.vercel.app

@codesandbox-ci

codesandbox-ci Bot commented Oct 28, 2021 •

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ddab6d4:

Sandbox Source
tannerlinsley/react-query: basic Configuration

Comment thread src/createWebStoragePersistor-experimental/index.ts Outdated
Comment thread src/createWebStoragePersistor-experimental/index.ts Outdated
Comment thread src/createWebStoragePersistor-experimental/index.ts Outdated
Comment thread src/createWebStoragePersistor-experimental/index.ts
@NewFuture

Copy link
Copy Markdown
Contributor Author

please help review it 😄

@TkDodo
TkDodo merged commit b52b277 into TanStack:master Nov 6, 2021
@tannerlinsley

Copy link
Copy Markdown
Member

🎉 This PR is included in version 3.32.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

This branch was successfully deployed

1 active deployment
Preview — ddab6d49 Deployed Nov 1, 2021 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

persistWithLocalStorage - Failed to execute 'setItem' on 'Storage' REACT_QUERY_OFFLINE_CACHE exceeded the quota

3 participants