type PreactTable<TFeatures, TData, TSelected> = Omit<Table<TFeatures, TData>, "store"> & object;Defined in: useTable.ts:27
FlexRender: <TValue>(props) => ComponentChildren;A Preact component that renders headers, cells, or footers with custom markup. Use this utility component instead of manually calling flexRender.
TValue extends CellData = CellData
FlexRenderProps<TFeatures, TData, TValue>
ComponentChildren
readonly state: Readonly<TSelected>;The selected state of the table. This state may not match the structure of the full table state because it is selected by the selector function that you pass as the 2nd argument to useTable.
readonly store: Table<TFeatures, TData>["store"];Prefer table.state for render reads, table.atoms.<slice>.get() for slice snapshots, or table.Subscribe / useSelector(table.store, selector) for explicit subscriptions. table.store.state is a current-value snapshot and is easy to misuse in render code.
Subscribe: {
<TSourceValue> (props): ComponentChildren;
<TSourceValue, TSubSelected> (props): ComponentChildren;
<TSubSelected> (props): ComponentChildren;
};Overloads (source first, then store) so JSX contextual typing works for both modes. Source without selector is separate so children infer TSourceValue (identity projection).
<TSourceValue>(props): ComponentChildren;TSourceValue
(state) => ComponentChildren | ComponentChildren
undefined
SubscribeSource<TSourceValue>
ComponentChildren
<TSourceValue, TSubSelected>(props): ComponentChildren;TSourceValue
TSubSelected
(state) => ComponentChildren | ComponentChildren
(state) => TSubSelected
SubscribeSource<TSourceValue>
ComponentChildren
<TSubSelected>(props): ComponentChildren;TSubSelected
Omit<SubscribePropsWithStore<TFeatures, TSubSelected>, "source">
ComponentChildren
TFeatures extends TableFeatures
TData extends RowData
TSelected = TableState<TFeatures>