# getPaginationRowModel

# ~~Function: getPaginationRowModel()~~

```ts
function getPaginationRowModel<TData>(): RowModelFactory<TData>;
```

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

## Type Parameters

### TData

`TData` *extends* `RowData`

## Returns

`RowModelFactory`\<`TData`\>

## Deprecated

Use `createPaginatedRowModel()` 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 paginated row model.
