query.invalidate()
#9099
Unanswered
axelrindle
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We already have
query.refetch()
, why not addquery.invalidate()
?I have a scenario where a generic DataTable component accepts a
UseQueryDefinedReturnType
as a prop. There is a refetch button which callsquery.refetch()
. In some situations I'd like the DataTable to also invalidate the query, which is not possible, because the DataTable has no knowledge of the queries query key.Beta Was this translation helpful? Give feedback.
All reactions