Fetch specific users by ID and filter releases by state
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.
import {useUsers} from '@sanity/sdk-react'
const {data} = useUsers({userIds: ['USER_ID_1', 'USER_ID_2']})See the useUsers reference.
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.
import {useAllReleases} from '@sanity/sdk-react'
const releases = useAllReleases({state: ['published', 'archived']})See the useAllReleases reference.
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.