onStateChange
Home > @gooddata/sdk-ui-dashboard > IDashboardEventing > onStateChange
IDashboardEventing.onStateChange property
Specify callback that will be called each time the state changes.
Signature:
onStateChange?: (state: DashboardState, dispatch: DashboardDispatch) => void;
Remarks
Note: there is no need to use this in your own React components that you plug into the dashboard. Your React component code can use useDashboardSelector and hooks instead.