🔧NgRx 22 Adds Resource Extensions and Dynamic Deep Signals
NgRx 22 brings resource extensions and dynamic deep signals
TL;DR
NgRx 22 introduces resource extensions for customizing Angular's resource API and dynamic deep signals for union types. Key features include built-in extensions and ESLint v10 compatibility. Developers need Angular 22, TypeScript 6.0, and RxJS ^6.5 or ^7.5.
NgRx 22 has arrived with resource extensions, a new experimental feature that wraps existing resources and patches behaviors without altering the original type. This release also brings dynamic deep signals for union types, making state slices more flexible. Developers can now register resource extensions at application, route, or component levels, and the error behavior of Angular's resource API is reset to undefined during reloads. The new release also includes ESLint v10 support and a light theme for the documentation site. NgRx 22 requires Angular 22, TypeScript 6.0, and RxJS ^6.5 or ^7.5, with most breaking changes having automated migrations detailed in the v22 migration guide and changelog.

Key Points
NgRx 22 introduces resource extensions through @ngrx/signals/resource, allowing custom behavior patches without altering original resource type.
Four built-in extensions are included, with provideResourceExtensions function for registering defaults at application, route, or component level.
Dynamic deep signals for union types enable each object literal member to get its own DeepSignal, reachable after narrowing with an in check.
NgRx 22 supports ESLint v10 and drops support for ESLint v8 and the legacy .eslintrc format.
Developers upgrading need Angular 22, TypeScript 6.0, and RxJS ^6.5 or ^7.5, with most breaking changes having automated migrations.
Why It Matters
If you're building complex state management in Angular, NgRx 22's resource extensions and dynamic deep signals can streamline your workflow. For instance, customizing error handling and integrating with Redux DevTools becomes easier. However, ensure your project meets the new requirements before upgrading.
Comments
Be the first to comment
Enjoyed this article?
Get it daily. 7am. Free. Reads in 5 minutes.
Join 3,568 builders reading daily.