Sanity Library Reference Docs
    Preparing search index...
    • One watched content doc as an App SDK store source, GDR-routed: the SDK's document store keys on the handle's resource field (a per-resource listener + a resource-scoped client), so a ref in another dataset, or in a Media Library / Canvas resource, is observed live in that resource, provided the instance's auth covers it. dashboard: is the one scheme the SDK's store cannot address (no DocumentResource variant) and throws there.

      Two routes, split on contentDraftFallback: a watch whose perspective keeps drafts visible uses the optimistic per-doc store; one whose perspective makes drafts invisible (a [release] stack without 'drafts', 'published'/'raw' scalars) is observed through the committed query store under the verbatim perspective stack instead — the per-doc store's fallback cannot skip its draft arm.

      Exported as the lower-level content store used by custom observers; the package's makeSdkObserver composes the same primitive below.

      Parameters

      Returns DocStore<ObservedDoc>