Skip to main content
The useRecord hook provides a simple way to fetch a single record from a collection in React components.

Import

Usage

Parameters

Options

Field Selection

Expand Relations

Return Value

Loading State

Error Handling

Refetching

Conditional Fetching

Skip fetching when ID is not provided:

TypeScript

Complete Example

With useMutation

Combine with useMutation for edit functionality:

Next Steps