UnloadDocumentHandler

Type: Function

Optional. Called to unload a single document, which may be useful to conserve memory in cases where the hierarchy references a very large number of documents. When using the just-in-time loading feature, documents loaded automatically by scrolling the viewport can only be unloaded automatically if this is implemented.

Arguments

  1. documentId

    (Required)

    The ID of the document to unload

Returns

Type: Promise

Should resolve to undefined