Sanity React App SDK v2.12.0: Releases support

Releases support

The document store now includes release actions, and a new useAllReleases hook makes it easier to fetch releases from your application.

You can now work with Content Releases from your application. The document store exposes release actions for creating, scheduling, and publishing releases, and the new useAllReleases hook returns all releases in your project. Use it to build release pickers, dashboards, or scheduling UI.

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

function ReleaseList() {
const releases = useAllReleases()
// ...
}