Introduction
NgRx Traits is a set of prebuilt NgRx Signals custom store features that solve common problems such as calling a backend API, adding pagination, sorting, filtering, selection of entities, and more.
Features
- Typed and generated: every feature adds strongly typed signals and methods, so you write less boilerplate.
- Backend calls: withCalls, withCallStatus, withCallStatusMap / withAllCallStatus, per-entity calls with withEntitiesCalls, and caching with cacheRxCall.
- Entities: loading with withEntitiesLoadingCall; local, remote or hybrid filter; local or remote sort; local or remote pagination; infinite scroll; single or multi selection.
- Link state to components: sync store state with component signals and Signal Forms using withLink (plus withLinkEntitiesFilter, Sort, SingleSelection, MultiSelection) and copySignal.
- State setters: withStateSetter, withStatePrivateSetter.
- Sync and SSR: withSyncToWebStorage, withSyncToRouteQueryParams / withEntitiesSyncToRouteQueryParams, withRoute, withServerStateTransfer.
- Tooling: withLogger, withFeatureFactory, an AI agent skill and migration schematics.
Support Us
Quick Install
npm i @ngrx/signals @ngrx-traits/signals
See Installation for Yarn and more details.
Next Steps