useRemoteDocumentState

Type: Function

How to get useRemoteDocumentState?

JavaScript

import useRemoteDocumentState from 'fontoxml-remote-documents/src/useRemoteDocumentState.js'

A hook that returns the remote document state (which is a complex object containing multiple properties described below) for a given documentId. Designed to be used in custom sheet frame headers. Read more in the "Configure a (custom) sheet frame header" how to guide.

Arguments

  1. documentId

    (Required)

    The local document id for which you want to track remote document state.

Returns