Skip to content

ViewRegistry.on('view-unregistered') method

ViewRegistry › on(‘view-unregistered’)

Unofficial

Called when a view of type has been unregistered from the registry.

Signature:

on(name: "view-unregistered", callback: (viewType: string) => void): EventRef

Parameters:

Parameter Type Description
name "view-unregistered" The event name.
callback (viewType: string) => void The callback to invoke with the unregistered view type.

Returns: EventRefThe event reference.