Sanity React App SDK v2.5.0: Enhanced document actions and liveEdit document support

This release introduces new hooks for working with agent resources, improved document action handling, and support for liveEdit workflows. It also adds multi-dataset support for a single client instance.

✨ Highlights

New useAgentResourceContext hook

Access agent resource context directly in your React components with the new useAgentResourceContext hook. This hook provides access to agent-specific resources and state within your Sanity application.

Live editing document support

The SDK now supports documents that use the liveEdit feature. Documents update automatically as changes occur, providing a seamless editing workflow for your users. Use the liveEdit option in document handles when interacting with liveEdit-enabled documents.

Multi-dataset support with single client instance

Use the same client instance across different datasets. This simplifies configuration when working with multiple datasets in your application. Learn more about mutli-project and multi-dataset configurations.

🐛 Notable bugfixes and improvements

Improved applyDocumentActions to align with other SDK methods for more consistent behavior.