OptionalenabledOptionalfetchInline fetcher (deprecated 1.x REST form). Optional in 2.0: pure graph
subscriptions for Tier-A PGlite/Electric entities pass no fetcher — the
graph is hydrated out-of-band and the hook only joins ids → entities.
When omitted, fetchList is a no-op and the hook is read-only.
OptionalmodeOptionalnormalizeRow normalizer. Optional alongside fetch (graph-only callers omit both).
OptionalonOptionalonOptionalqueryOptional override for the cache key. Defaults to ["entity-list-as-table", type].
OptionalsideOptionalstale
table/use-entity-list-as-table.ts
Adapter hook that shapes a
useEntityListresult for TanStack Table (or any data-grid that wants a plaindataarray +rowCount).It deliberately does NOT bring
@tanstack/react-tableas a dependency. Consumers wire the table; this helper only stabilizes the array reference so the table doesn't re-render unnecessarily, and exposes the same loading/error surface asuseEntityList.Example