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.
- Available starting in
ngrx/signals19.1 - NgRx PR: "feat(signals): add
withFeature#4739" - NgRx documentation section on
withFeature
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.