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

@qubeejs/react/tanstack-router

@qubeejs/react/tanstack-router — the router adapter for TanStack Router 1.49 and later.

Its own entry point, so that only apps that import it need @tanstack/react-router installed. Beside the adapter it has the two search serialisers that keep a query as plain text, for the router of an app with a free-text search.

Import from @qubeejs/react/tanstack-router
Needs @tanstack/react-router ^1.49.0, an optional peer dependency: install it to use this entry.
Runs in Client components: the entry is marked 'use client'. A Server Component can render what it exports, not call it.
Export Kind What it is
<TanStackRouterAdapter> component Make TanStack Router the router adapter of every list below it.
useTanStackRouterAdapter() hook TanStack Router as a RouterAdapter:
parseSearch() function Read a query string as plain text, for the parseSearch option of a TanStack Router.
stringifySearch() function Write a search object as a plain query string, for the stringifySearch option of a TanStack Router — the other half of parseSearch.
TanStackRouterAdapterOptions type Options of useTanStackRouterAdapter.
TanStackRouterAdapterProps type Props of TanStackRouterAdapter.