Sanity Library Reference Docs
    Preparing search index...

    Function useGetDefaultPerspective

    • Beta

      Exposes the default perspective based on the draft model enabled status. If the user hasn't opt out from draft, the default perspective is drafts Otherwise, the default perspective is published

      Returns "published" | "drafts"

      The default perspective based on the draft model enabled status.