Angular 22.1 Adds Two-Way Write Support to linkedSignal via Custom set()
Angular 22.1.0 introduces a custom set() option for linkedSignal(), enabling true two-way data binding between a derived signal and its source. Previously, developers had to manually write separate update methods to propagate changes back to the source signal, creating a disconnect between read and write logic. The new API accepts a set function alongside the computation, so calls to .set() or .update() on the linked signal automatically update the original source. A key concern was whether writing back to the source would trigger an infinite reactive loop, but Angular's architecture prevents this by routing public write calls exclusively through the custom setter, not through the reactive recomputation path. The feature is stable and documented in the official Angular linkedSignal guide.
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