# getFacetedRowModel

# ~~Function: getFacetedRowModel()~~

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

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

## Type Parameters

### TData

`TData` *extends* `RowData`

## Returns

`FacetedRowModelFactory`\<`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.
