Skip to main content
cngx-src documentation

CNGX_FILTER_BUILDER_STATE_FACTORY

Tokenv0.1.0

InjectionToken<CngxFilterBuilderStateFactory>

Description#

Factory that builds the state machine behind one <cngx-filter-builder> - the writable tree signal, the derived tree / fieldMap / isEmpty reads, the path-keyed mutators, and the lastMutation event the presenter watches to drive announcements.

Default: createFilterBuilderState. Swap the implementation (wrap mutations with logging, undo, telemetry) at root or component scope:

providers: [
  { provide: CNGX_FILTER_BUILDER_STATE_FACTORY, useValue: myStateWrapper },
]

Type#

InjectionToken<CngxFilterBuilderStateFactory>

Provided in#

'root'