# getFacetedUniqueValues

# ~~Function: getFacetedUniqueValues()~~

```ts
function getFacetedUniqueValues<TData>(): FacetedUniqueValuesFactory<TData>;
```

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

## Type Parameters

### TData

`TData` *extends* `RowData`

## Returns

`FacetedUniqueValuesFactory`\<`TData`\>

## Deprecated

Use `createFacetedUniqueValues()` 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 unique values.
