📎 Webclip
Announcing NgRx 19: NgRx Signals Features, Action Signals, and more!
NgRx 19 introduces updates to NgRx Signals, support for dispatching actions when signals change, and a recommendation to use NgRx Signals as the default local state library for Angular apps. It also announces workshops, a new docs site, and upgrade guidance for Angular 19, TypeScript 5.5, and RxJS.
Reading notes#
- Version 19 brings improvements to NgRx Signals, which was already stable since v18 and received updates to improve the development experience.
- The new
withPropsallows defining props when creating a SignalStore, organizing dependencies in one place, and integrating resources such asresourceandlinkedSignal. - The
signalMethodutility offers a way to handle side effects using only signals, with flexible input, without requiring injection context, and with explicit tracking of the parameter signal. - In development mode,
patchStatenow applies deep freeze to the state to prevent mutations and preserve immutable updates. - NgRx Store now accepts dispatch of actions that read signals, executing initially and whenever the observed signal changes, with extra care outside the injection context.
- The text says that NgRx Signals has become the recommended library for local state in Angular applications, with a suggestion to start with SignalStore in new projects and migrate to
@ngrx/signalsin existing projects. - The publication also announces workshops from the NgRx team, a new documentation site, and deprecation/breaking changes with a migration guide for version 19.
- To update, the text informs minimum versions of Angular, Angular CLI, TypeScript, and RxJS and shows the
ng updatecommands for@ngrx/store@19and@ngrx/signals@19.
