Sanity Library Reference Docs
    Preparing search index...
    • A WorkflowObserver backed by the App SDK's optimistic per-doc store (getDocumentState: sync getCurrent() + subscribe(), exposed as loading until resolved). Every stream routes to the resource that actually holds it: the instance to the engine's state dataset, content docs to their ref's own resource (a dataset, Media Library, or Canvas, release-resolved per the perspective), and guards across each resource the instance's GDRs name (a guard co-locates with the subject it locks). The fan-out/snapshot machinery lives in combineDocStores / combineGuardStores.

      Parameters

      Returns WorkflowObserver