NotZelda
How to define per route staleTime on queryClient?
This is correct, but lets say I have 2 components that call the same API route on the same page. Use query will de-dupe this using the queryKey, however its indeterminate which is will take on as the staleTime. I would rather just declare the staleTime once on the procedure and then not have to make sure all my staleTimes are the same for each useQuery hook using the API.
7 replies