I cannot set a default cacheTime
Hello, I'm trying to set a default cache and staleTime when creating my queryClient
`
But it complains on cacheTime with the message
What am I doing wrong?
2 Replies
ambitious-aqua•3y ago
Are you on v5? I believe
cacheTime was renamed to gcTime: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#rename-cachetime-to-gctimeMigrating to TanStack Query v5 | TanStack Query Docs
Breaking Changes
v5 is a major version, so there are some breaking changes to be aware of:
harsh-harlequinOP•3y ago
Yes, that is it! Thanks