Sanity Library Reference Docs
    Preparing search index...

    Function useDocumentVersionInfo

    • Takes a document id, and returns information about what other versions of the document currently exists.

      Parameters

      • documentId: string

        The document id. Should be the published id

      Returns {
          draft: VersionInfoDocumentStub;
          isLoading: boolean;
          published: VersionInfoDocumentStub;
          versions: Record<string, VersionInfoDocumentStub>;
      }

      Use useDocumentVersions instead.