Skip to content

Interface: ByIdFetchState\<T\>

Hook state for useByIdFetch. Generic over the resource’s payload shape; consumers read data / loading / error exactly as the chart and statement slots do. A 404 on the server resolves as data === undefined with error === null so the slot renders nothing (matches “expired / unknown id” semantics across all by-id resources).

T

data: T | undefined


error: Error | null


loading: boolean