🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
experimental_createPersister creates a separate storage entry for each cache item.
If this item is not accessed anymore it will never be cleaned up and stays in storage indefinitely.
Describe the bug
experimental_createPersister
creates a separate storage entry for each cache item. If this item is not accessed anymore it will never be cleaned up and stays in storage indefinitely.Your minimal, reproducible example
https://stackblitz.com/edit/github-1zcjsn?file=src%2Findex.jsx
Steps to reproduce
Expected behavior
I expect there is some kind of garbage collection.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Android, React Native
Tanstack Query adapter
react-query
TanStack Query version
5.25.0
TypeScript version
No response
Additional context
My quick solution for now