usePrefetchInfiniteQuery

· abundance's blog


1usePrefetchInfiniteQuery(options)

Options

You can pass everything to usePrefetchInfiniteQuery that you can pass to queryClient.prefetchInfiniteQuery. Remember that some of them are required as below:

The usePrefetchInfiniteQuery does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses useSuspenseInfiniteQuery