Sanity Library Reference Docs
    Preparing search index...

    Function useDocumentVersions

    • Beta

      Fetches the document versions for a given document

      Parameters

      • props: DocumentPerspectiveProps

        document Id of the document (might include release id)

      Returns DocumentPerspectiveState

      • data: document versions, loading, errors