possibility to reset query data without rerunning it #6952
Unanswered
dberardo-com
asked this question in
Q&A
Replies: 1 comment
-
you can try |
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 have got a query that runs both at mount and using a refetch polling timer.
the issue is that whenever this query goes in error, i am not able to reset the error wthout refiring the query. i would like the query to reset to its initial state without refetching, much like the "reset" method from usemutation: https://tanstack.com/query/latest/docs/framework/react/guides/mutations#resetting-mutation-state
is this currently possible ?
Beta Was this translation helpful? Give feedback.
All reactions