OptionalfilterList of predicate functions that must all return true for updates to be emitted.
Filters are evaluated after map transformations. If any filter returns false, the callback is not invoked for that state change. Useful for preventing unnecessary updates. Functions are bound to the web component instance.
OptionalmapList of transformation functions applied sequentially to the state.
Each function receives the output of the previous function (or the raw state for the first function). Use this to extract, transform, or compute derived values from the state. Functions are bound to the web component instance.
Configuration options for state subscriptions.
These options allow you to transform and filter state updates before they reach your callback. Map functions transform the data, while filter functions determine whether the callback should be invoked at all.
Example