# table_setPagination

# Function: table\_setPagination()

```ts
function table_setPagination<TFeatures, TData>(table, updater): void | undefined;
```

Defined in: [features/row-pagination/rowPaginationFeature.utils.ts:65](https://github.com/TanStack/table/blob/main/packages/table-core/src/features/row-pagination/rowPaginationFeature.utils.ts#L65)

Routes a pagination updater through the table's pagination change handler.

The updater may be a next state object or a function of the previous
`PaginationState`; controlled state and external atoms observe the same
updater path as the instance API.

## Type Parameters

### TFeatures

`TFeatures` *extends* [`TableFeatures`](../../index/interfaces/TableFeatures.md)

### TData

`TData` *extends* [`RowData`](../../index/type-aliases/RowData.md)

## Parameters

### table

[`Table_Internal`](../../index/type-aliases/Table_Internal.md)\<`TFeatures`, `TData`\>

### updater

[`Updater`](../../index/type-aliases/Updater.md)\<[`PaginationState`](../../index/interfaces/PaginationState.md)\>

## Returns

`void` \| `undefined`

## Example

```ts
table_setPagination(table, (old) => old)
```
