Angular 22.1 released with signal improvements, better hydration errors, and smaller bundles
Angular 22.1 has been released, bringing a set of incremental refinements to the framework's core features. The update relaxes type inference for viewChild and contentChild, allowing them to be used more flexibly inside computed signals without boilerplate lifecycle checks. Server-side rendering users benefit from more precise hydration mismatch error messages, which now identify the specific DOM node causing the issue rather than just the component. The @for control flow block gains improved dev-mode warnings when tracked expressions reference unstable identities, helping developers catch silent re-render bugs. Builds using the application builder will also produce slightly smaller bundles automatically, thanks to improved tree-shaking of unused signal utilities.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in