Replies: 1 comment
-
Interesting idea! I think there are quite a few config options where the response is better-placed to determine the value. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to define the staleTime of a query based on its previous response. In my case, the server knows pretty accurately when data will become stale or need refetching/revalidation in the future. This is reflected both in the response header and the response payload of the query. I'd like to be able to define a callback instead of a static number to extract this information from the last query.
Is this something you'd want to put on your roadmap and consider as a feature for the next version? If so, I'd be happy to work on this and submit a PR.
Beta Was this translation helpful? Give feedback.
All reactions