TanStackT
TanStack11mo ago
4 replies
full-green

Garbage collection for queries with searches

Assuming i have a query that accepts a search parameter, if a user searches, every inactive query will be cached and then only be cleared after 5 minutes. If a user keeps searching it'll add a lot of entries into the cache as they will all have a different query key, is this less of an issue than i think it is?

I'm mostly just worried users will run out of memory if they overdo searching
Was this page helpful?