T
TanStack3y ago
afraid-scarlet

No matter what the individual queries cacheTime, the query will be persisted with default cacheTime

from the question below I found that the answer has to do with the query always being persisted with the default queryClient values. Is this desired behavior?
1 Reply
afraid-scarlet
afraid-scarletOP3y ago
I experimented a bit more and I'm really only able to see in a difference of behavior in queries based on the dehydration criteria. Queries that meet my criteria will have their options be completely based on the default options for the queryClient. Those that don't meet the criteria are able to have their options defined at the hook declaration level. I wonder if this is something that I could take a stab at with a PR?

Did you find this page helpful?