getGroupedRowModel

fun <TData> getGroupedRowModel(): (table: Table<TData>) -> () -> RowModel<TData>

Builds the grouped row-model factory. The returned function is invoked once per Table and produces a memoised getter for the grouped RowModel.

When the pre-grouped model is empty, or no grouping is active, every row is reset to depth = 0 / parentId = null and the pre-grouped model is returned unchanged.