-
For most of our queries the query key is just the path to the api (i.e. api/get/customers) and the query parameters that are passed to the api. Most of the queries are executed by using What is the best practice to execute the query even if the query key does not change? I have couple use cases: a) Execute the query always even if the parameters (and thus the query key) is exactly the same It seems that setting the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Setting staleTime doesn't automatically trigger a fetch. |
Beta Was this translation helpful? Give feedback.
Setting staleTime doesn't automatically trigger a fetch.
It seems that refetch returned from useQuery is what you are looking for.