onPluginUnload()
Home > @gooddata/sdk-ui-dashboard > IDashboardPluginContract_V1 > onPluginUnload
IDashboardPluginContract_V1.onPluginUnload() method
This function will be called when user navigates away from the dashboard that uses an instance of this plugin.
Signature:
onPluginUnload?(ctx: DashboardContext): Promise<void> | void;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | DashboardContext | dashboard context into which this plugin was loaded |
Returns:
Promise<void> | void
Remarks
At this point, the plugin SHOULD perform any essential cleanup.