API/@qubeejs/react/swr
@qubeejs/react/swr
@qubeejs/react/swr — fetch a list’s pages through SWR 2.
Its own entry point, so that only apps that import it need swr installed.
| Import from | @qubeejs/react/swr |
| Needs | swr ^2.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 |
|---|---|---|
| useQubeeSWR() | hook | Fetch the page a request asks for through SWR. |
| QubeeSWROptions | type | Options of useQubeeSWR: |