# getFacetedRowModel

# ~~Function: getFacetedRowModel()~~

```ts
function getFacetedRowModel<TData>(): FacetedRowModelFactory<TData>;
```

Defined in: [useLegacyTable.ts:113](https://github.com/TanStack/table/blob/main/packages/react-table/src/useLegacyTable.ts#L113)

## Type Parameters

### TData

`TData` *extends* `RowData`

## Returns

[`FacetedRowModelFactory`](../type-aliases/FacetedRowModelFactory.md)\<`TData`\>

## Deprecated

Use `createFacetedRowModel()` with the new `useTable` hook instead.

This is a stub function for v8 API compatibility with `useLegacyTable`.
It acts as a marker to enable the faceted row model.
