Skip to content

fix(forms): deduplicate writeValue calls in CVA interop#67866

Open
alxhub wants to merge 1 commit intoangular:mainfrom
alxhub:sf/prevent-cva-loopback
Open

fix(forms): deduplicate writeValue calls in CVA interop#67866
alxhub wants to merge 1 commit intoangular:mainfrom
alxhub:sf/prevent-cva-loopback

Conversation

@alxhub
Copy link
Member

@alxhub alxhub commented Mar 25, 2026

Update bindings['controlValue'] during onChange to track the view value. This allows bindingUpdated to skip writeValue if the model value matches the last seen view value, preventing redundant writes.

Fixes #67847

Update bindings['controlValue'] during onChange to track the view value. This allows bindingUpdated to skip writeValue if the model value matches the last seen view value, preventing redundant writes.

Fixes angular#67847
@ngbot ngbot bot added this to the Backlog milestone Mar 25, 2026
@alxhub alxhub added target: major This PR is targeted for the next major release forms: signals labels Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: forms forms: signals target: major This PR is targeted for the next major release

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Signal Forms / FormValueControl violates ControlValueAccessor contract by calling writeValue back after onChange, causing infinite loop

1 participant