Replies: 1 comment 1 reply
-
As usual with code snippets / screenshots / videos, you’re not showing all the information. Per default, the query cache is in-memory only, so when you reload the page, you should see no queries. That means you probably opted in to persistence, but you’re setting |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I set some query's
gcTime
as 0 to remove the query immediately when this query becomes inactive state.It works well when I refetch the query or when the query isn't used in the page anymore.
However, when I refresh the page, query cache still remains as inactive state, and garbage collect didn't work I think.
Below is the example video.
ASSET_TICKETS
query refetchesASSET_TICKETS
query'sgcTime
is 0Is there any way to automatically remove the unused inactive queries when page is refreshed?
2025-05-21.3.47.55.mov
Beta Was this translation helpful? Give feedback.
All reactions