Describe the bug
Hi, I am not sure this is an issue or intended behavior. Setting gcTimeon the queryCollectionOptions does not override the default gcTime on the tanstack/query.
This is my collection definition:
const collection = createCollection(
queryCollectionOptions({
queryKey: ["test"],
staleTime: Infinity,
gcTime: Infinity,
queryClient,
Checking tanstack query devtools the query is still using the gcTimefrom the queryClient.
I do get this warning when the query is cleaned up:
[cleanupQueryIfIdle] Invariant violation: refcount=1 but no listeners. Cleaning up to prevent leak. {hashedQueryKey: '["test"]'}
Describe the bug
Hi, I am not sure this is an issue or intended behavior. Setting
gcTimeon thequeryCollectionOptionsdoes not override the defaultgcTimeon the tanstack/query.This is my collection definition:
Checking tanstack query devtools the query is still using the
gcTimefrom thequeryClient.I do get this warning when the query is cleaned up: