GoodData.UI API reference
  • GoodData.UI
  • Docs & APIs
  • Developers
  • GoodData.CN
  • GoodData.UI
  • Docs & APIs
  • Get GoodData.CN Community Edition
  • 8.12.0
  • Code samples
  • Gallery
  • GitHub

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.

  • IDashboardEventing.onStateChange property
  • Remarks
GoodData resources:
  • Documentation
Follow the community:
  • Community
Copyright © 2007–2023 GoodData Corporation. All Rights Reserved. Code licensed under a dual license - CC BY‑NC 4.0 for trial experience and GoodData.UI EULA for commercial use