#redirect if user exists
2 messages · Page 1 of 1 (latest)
The default behavior of a query is to refetch whenever the component using the query is mounted assuming the query is considered stale. If you set an appropriate staleTime, the cache will be reused without causing the query function to be triggered again.