API/@qubeejs/react/next
@qubeejs/react/next
@qubeejs/react/next — the router adapter for the Next.js App Router.
Its own entry point, so that only apps that import it need next installed. Server Components
need nothing from here beyond rendering NextAdapter: they read state, build requests
and build links with @qubeejs/core.
| Import from | @qubeejs/react/next |
| Needs | next >=15.0.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. |
Exports
Section titled “Exports”| Export | Kind | What it is |
|---|---|---|
| <NextAdapter> | component | Make the Next.js App Router the router adapter of every list below it. |
| useNextAdapter() | hook | The Next.js App Router as a RouterAdapter: |
| NextAdapterOptions | type | Options of useNextAdapter. |
| NextAdapterProps | type | Props of NextAdapter. |