Skip to content

Is there a way to have the refetch function automatically cancel previously running queries? #1636

Discussion options

You must be logged in to vote

To answer my own question, I looked into the source code a bit and found that you can use refetch({cancelRefetch: true})}. However, this is not exposed in the typescript typings.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vilbergs
Comment options

@TkDodo
Comment options

Answer selected by ashwinGokhale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants