Skill / SKILL.md

Sanity Form Component Suspense

sanity-io/agent-toolkit

Fix a Sanity Studio custom form component (components.input, components.field, components.item, or a plugin's form.components) that suspends without its own Suspense boundary, so it loads without layout shift and never blocks new documents. Use when the console warns "The custom input/field/item component ... suspended without a <Suspense> boundary of its own" or "A form component ... suspended without a <Suspense> boundary of its own", when a custom form component uses React.lazy, use(), App SDK hooks (useDocumentProjection, useQuery, useDocument) or another suspending data library, or when a field or array item shows a skeleton that never goes away on new documents.
3 views 202 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Fix a Sanity Studio custom form component (components.input, components.field, components.item, or a plugin's form.components) that suspends without its own Suspense boundary, so it loads without layout shift and never blocks new documents. Use when the console warns "The custom input/field/item component ... suspended without a <Suspense> boundary of its own" or "A form component ... suspended without a <Suspense> boundary of its own", when a custom form component uses React.lazy, use(), App SDK hooks (useDocumentProjection, useQuery, useDocument) or another suspending data library, or when a field or array item shows a skeleton that never goes away on new documents.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/sanity-io/agent-toolkit' skill-source

Use the complete skill-source/skills/sanity-form-component-suspense directory with your client’s skill installer.

  • skills/sanity-form-component-suspense

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/sanity-form-component-suspense

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
63ce9931ac161b67102574fd8f1a0428c7417898727e53861441e6cc468b184c
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills