# Fetch specific users by ID and filter releases by state

**Version:** v3.19.0

**Published:** December 4, 2026

You can now fetch specific users by ID and limit releases to the states you need. Apps that show many projections also do less work on each store update.

## New features

### Fetch specific users by ID

Pass `userIds` to `useUsers` to get only those users instead of paging through the whole directory. IDs that don't exist or that you can't access are left out of the result instead of throwing an error.

**Assignees.tsx**

```tsx
import {useUsers} from '@sanity/sdk-react'

const {data} = useUsers({userIds: ['USER_ID_1', 'USER_ID_2']})
```

See the [useUsers reference](https://reference.sanity.io/_sanity/sdk-react/exports/useUsers/).

### Filter releases by state

`useAllReleases` accepts an optional `state` option. Pass one lifecycle state or a list of states to get only those releases. Without it, the hook still returns every release.

**Releases.tsx**

```tsx
import {useAllReleases} from '@sanity/sdk-react'

const releases = useAllReleases({state: ['published', 'archived']})
```

See the [useAllReleases reference](https://reference.sanity.io/_sanity/sdk-react/exports/useAllReleases/).

## Improvements

- Projections: store updates are much faster when many projections are mounted. The SDK now validates each document ID and hashes its projection once, not on every read.

