web-state-ngrx-signalstore
Installation
SKILL.md
NgRx SignalStore Patterns
Quick Guide: A SignalStore is an Angular service assembled from features —
withState,withComputed,withMethods,withHooks— applied in that order, since each one sees only what came before it. Every update goes throughpatchState; state is protected from outside writes from v18 and deep-frozen in development from v19, which is why aFormGroupor any other mutable object belongs inwithPropsrather than in state.
Detailed Resources:
- examples/core.md —
signalStore,withState,withComputed,withMethods,withProps, DI and component-scoped stores - examples/entities.md —
withEntities, the CRUD updaters,prependEntity/upsertEntity(v20+) - examples/effects.md —
rxMethod,signalMethod(v19+), side effects - examples/features.md —
signalStoreFeature, custom features, call state, DevTools - examples/testing.md — unit tests,
unprotected(), mocking strategies - examples/migration.md — migrating from actions, reducers and effects
- reference.md — comparison tables, anti-pattern code, TypeScript recipes, migration steps