> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# DashboardDeinitialized

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: type-alias
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/model/events/dashboard.ts

This event is emitted when a dashboard is deinitialized. The event contains contextual information such as the ref of dashboard being deinitialized if the dashboard being deinitialized contained a persisted dashboard object.

**Signature:**

```typescript
export type DashboardDeinitialized = IDashboardEvent & {
    readonly type: "GDC.DASH/EVT.DEINITIALIZED";
    readonly payload: DashboardDeinitializedPayload;
};
```
**References:** [IDashboardEvent](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idashboardevent/index.md), [DashboardDeinitializedPayload](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.dashboarddeinitializedpayload/index.md)

## Remarks

This event is useful when your application switches between different dashboards (similar to what the Dashboards application does) and you want to handle that. Note that this event WILL NOT be fired when navigating to a completely different application/site in the browser or closing the tab etc., if you want to handle that, you need to do it yourself using the appropriate events on the Window object.
