Skip to content

Function: useFilters() ​

ts
function useFilters(dashboard): FilterState;

Defined in: packages/react/src/state.ts:25

Every filter, by chart id: the same plain object as dashboard.filters.snapshot.filters, replaced on each change. Empty before the dashboard is ready and on the server.

Parameters ​

ParameterType
dashboardDashboard<string> | null

Returns ​

FilterState

Released under the MIT License.