Software Development
Sanity Studio Listeners
Keep Sanity Studio customizations (custom tools, inputs, document views, structure and plugins) from opening a real-time listener per document, which fills the browser's shared connection to the Sanity API and makes Studio hang when editors have several tabs open. Use when writing or reviewing Studio code that shows live data, validation or permissions for many documents (lists, boards, tables, review queues, dashboards); when code calls useValidationStatus, useDocumentPairPermissions, documentStore.listenQuery, listenQuery, client.listen or useListeningQuery from sanity-plugin-utils; or when editors report Studio stuck on its loading spinner or "Trying to connect…", "Could not establish EventSource connection", or that closing other Studio tabs fixes it.
- Publisher / source
- Sanity Agent Skills
- Upstream record
- sanity-io/agent-toolkit
- Version
- Version 1
- Published
- Publication review
- Approved for publication
- Content fingerprint
7bc68091bc06b7604fa896a7e08dc10d03093d98632fe28b0f13aff0aa5f2687