Option to reset the query on refetch #9985
Unanswered
stavros-tsioulis
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
Uh oh!
There was an error while loading. Please reload this page.
-
When calling
query.refetch(), it would be helpful to have the ability to reset the query to its pending state.I know we can use
isFetchingorisRefetchingto display a loading state, but as I understand, per TQ's defaults, the loading state in such a case would also be shown when a query is automatically refetched when a query becomes stale.I'm imagining the API to look like this:
Thank you for the amazing library and I'm looking forward to some input on this.
Beta Was this translation helpful? Give feedback.
All reactions