Capítulo 75 de 80

Chapter 75: infiniteQueryOptions

Core Idea

The useInfiniteQuery-shaped counterpart to queryOptions — same identity-function purpose, sharable across useInfiniteQuery, useSuspenseInfiniteQuery, and queryClient.infiniteQuery().

Key Concepts

  • Required fields: queryKey plus whatever useInfiniteQuery itself requires (initialPageParam, getNextPageParam).
  • Everything else: any valid useInfiniteQuery option is accepted and passed through unchanged.

Connects To

  • useInfiniteQuery: the full option shape this helper preserves types for.
  • queryOptions: the non-infinite counterpart with the identical purpose.