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).
Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”data:
T|undefined
error:
Error|null
loading
Section titled “loading”loading:
boolean