You are viewing API docs for version 1.89.3.

View latest

Home > widget-integration > FilterStore > getState

FilterStore.getState() method

Retrieves the entire current filter state.

Signature:

getState(): FilterStates;

Returns:

FilterStates

A shallow copy of the complete state object to prevent accidental mutations of the internal state

Example

const state = filterStore.getState();
console.log(state.latestRequestKey, state.shortParamsMap);