Skip to content

resource

Declarative async data. The argument list is the dependency (refetch on change); the arrow body is the fetcher. Supports swr / cache / retry modifiers.

Valid in: component body, store body

See also: the guide.

Generated from the compiler’s reserved-keyword set. Do not edit by hand — run bun run scripts/site/gen-keyword-reference.ts to regenerate.