Skip to content

Infinite query refetch with pagination reset #5692

Answered by TkDodo
mk-nickyang asked this question in Ideas
Discussion options

You must be logged in to vote

It does work, but I'm just wondering if this is the best way to handle case like this?

yes, this is the best way to handle the case.

Note that we have removed refetchPage in v5 in favor of the maxPages option. Your proposal has the same drawback as refetchPage has - it only works for programmatic invocations, but not automatic ones like refetchOnWindowFocus.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@mk-nickyang
Comment options

@TkDodo
Comment options

@mk-nickyang
Comment options

@TkDodo
Comment options

@mk-nickyang
Comment options

Answer selected by mk-nickyang
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
4 participants