TanStack
Row API Reference

createGroupedRowModel

ts
function createGroupedRowModel<TFeatures, TData>(): (table) => () => RowModel<TFeatures, TData>;

Defined in: features/column-grouping/createGroupedRowModel.ts:26

Creates a memoized grouped row model factory.

The factory reads the relevant table state atoms and options, then returns a row model function used by the table row-model pipeline.

When rowAggregationFeature is also registered, grouped rows use its shared executor for non-group values. Grouping remains useful without aggregation.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData = any

Returns

(table) => () => RowModel<TFeatures, TData>