Skip to content
API/@qubeejs/react/tanstack-query

@qubeejs/react/tanstack-query

@qubeejs/react/tanstack-query — fetch a list’s pages through TanStack Query 5.62 and later.

Its own entry point, so that only apps that import it need @tanstack/react-query installed. It is server-safe: not a client module, so its options can be built in a Server Component or a route loader to prefetch a page.

Import from @qubeejs/react/tanstack-query
Needs @tanstack/react-query ^5.62.0, an optional peer dependency: install it to use this entry.
Runs in Anywhere — a Server Component, a route loader, a script: the entry is not a client module and imports nothing from React.
Export Kind What it is
qubeeQueryOptions() function The TanStack Query options that fetch the page a request asks for.
QubeeQueryKey type The cache key of a list request: