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:

ParameterTypeDescription
name"view-unregistered"The event name.
callback(viewType: string) => voidThe callback to invoke with the unregistered view type.

Returns: EventRefThe event reference.