Skip to main content

withFeatureFactory()

// DEPRECATED
import { withFeatureFactory } from '@angular-architects/ngrx-toolkit';

// Use this instead
import { withFeature } from '@ngrx/signals'

The withFeatureFactory() function allows passing properties, methods, or signals from a SignalStore to a feature. It is an advanced feature, primarily targeted for library authors for SignalStore features.

warning

Deprecation

Use import { withFeature } from '@ngrx/signals' instead.

withFeature is the successor of the toolkit's withFeatureFactory.

In the future, withFeatureFactory will likely be removed, provided a right migration path is prepared. Watch out for PRs, and see the PR that deprecates withFeatureFactory for the initial plan for handling the removal.