Skip to content

Prefetching infinite queries #826

Answered by kuldarim
bryanrsmith asked this question in General
Discussion options

You must be logged in to vote

Hi @bryanrsmith ,
I think I'm using a newer version now, but in case someone will end up in the same discussion queryClient now has prefetchinfinitequery method. Which solves this problem.

await queryClient.prefetchInfiniteQuery(queryKey, queryFn);

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@velopert
Comment options

@fanelfaa
Comment options

@TkDodo
Comment options

@HypeNeutron
Comment options

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