# zustand/traditional

Part of the `zustand` package: install `zustand` and import these from `zustand/traditional`.

## Functions

### `useStoreWithEqualityFn`

```ts
function useStoreWithEqualityFn<S extends ReadonlyStoreApi<unknown>>(
  api: S,
): ExtractState<S>
function useStoreWithEqualityFn<S extends ReadonlyStoreApi<unknown>, U>(
  api: S,
  selector: (state: ExtractState<S>) => U,
  equalityFn?: (a: U, b: U) => boolean,
): U
```

## Constants

### `createWithEqualityFn`

```ts
const createWithEqualityFn: CreateWithEqualityFn
```

## Types

### `UseBoundStoreWithEqualityFn`

Also has every member of `StoreApi`, listed on its own entry.

```ts
type UseBoundStoreWithEqualityFn<S extends ReadonlyStoreApi<unknown>> = {
  (): ExtractState<S>
  <U>(
    selector: (state: ExtractState<S>) => U,
    equalityFn?: (a: U, b: U) => boolean,
  ): U
} & S
```
