# usePivot (@salmonui/pivot-table)

> The usePivot function of @salmonui/pivot-table: Creates the pivot store shared by PivotTable, PivotFieldList, PivotAxisBar, PivotToolbar and the chart adapters. The component that calls it re-renders when the result or the status changes.

Canonical: https://salmonui.dev/docs/reference/pivot-table/usePivot

```ts
import { usePivot } from '@salmonui/pivot-table';
```

Entry index: https://salmonui.dev/docs/reference/pivot-table (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/pivot-table.md).

## Reference

Kind: function

```ts
function usePivot<Row = unknown>(own?: UsePivotOptions<Row>): PivotController<Row>;
```

Creates the pivot store shared by `PivotTable`, `PivotFieldList`,
`PivotAxisBar`, `PivotToolbar` and the chart adapters. The component that
calls it re-renders when the result or the status changes.
