persistQueryClient plugin and I set up default cacheTime on queryClient to Infinity, as described here in the docs:someFilters variable changes, I would like to fetch data for new filters and I would like to remove data for previously selected filters immediately. I will never need it again and don't want it to be persisted.cacheTime: 0 in above case. I thought that it will remove data for previous key after filters change, and data for current filters will be persisted because query is active (this custom hook is mounted at the root).someFilters changes I see two versions of this query in devtools - one for active query with cacheTime being properly set to 0 (which is expected) and the other, inactive one, for previous filters with cacheTime being set to Infinity, which I guess is inherited from query client defaults. So in such scenario query for old filters configuration will be persisted forever.cacheTime works when queries get unmounted and how it works during hydration is not super clear to me unfortunately https://x.com/tan_stack/status/2031128535470104577?s=20
dry-scarlet · 9h ago
https://x.com/powersync_/status/2010721010006552775?s=20
dry-scarlet · 2mo ago
You can now submit your website/app/project to http://TanStack.com 's new showcase and have it seen by the TanStack community! - Global showcase browser - Per-library filters - Category filters Submit here: https://tanstack.com/showcase/submit View all here: https://tanstack.com/showcase
dry-scarlet · 3mo ago