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

# Name Type Description
1. documentId DocumentId

The ID of the document to unload

Returns

Type: Promise

Should resolve to undefined

Related links

Was this page helpful?