useDashboardEventDispatch()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Convenience hook for dispatching Dashboard events.
useDashboardEventDispatch: () => ((eventBody: DashboardEventBody<DashboardEvents | ICustomDashboardEvent>) => void)
Returns
((eventBody: DashboardEventBody<DashboardEvents | ICustomDashboardEvent>) => void)
function that you can use to dispatch Dashboard events