Sanity Library Reference Docs
    Preparing search index...
    • Split a dataset resource id (<projectId>.<dataset>) into its parts — the one parser for the format, shared by gdrFromResource and the React adapters' store routing. Throws on a malformed id: missing separator, or an empty project / dataset part.

      Parameters

      • id: string

      Returns { dataset: string; projectId: string }