Sanity Library Reference Docs
    Preparing search index...
    • Build the Studio-side engine once: the workspace client rebound to the engine's state dataset, plus studioResourceClients as the default per-resource routing — so subjects and refs across many content datasets resolve without call sites assembling clients. Pass resourceClients to override the routing (compose with studioResourceClients to keep dataset-GDR routing). effects feeds Engine.drainEffects for engines that drain effects in the Studio. Memoized on the config's content, so inline workflowResource literals are fine; custom resourceClients and effects values should still be stable. Must render inside Studio source context.

      Parameters

      Returns Engine