Sanity Library Reference Docs
    Preparing search index...

    Function useCommentsEnabledV2

    • Beta

      Whether comments are enabled for the document, from the workspace's document.comments.enabled config. Synchronous and plan-independent: whether the plan has the feature only decides the mode, which useCommentsMode() hands out as a promise. false outside any CommentsEnabledProvider, such as a form rendered without the plugin.

      Returns boolean