Skip to content

docs(forms): clarify zoneless change detection for reactive FormArray updates#67472

Open
angular-bootstrap wants to merge 2 commits intoangular:mainfrom
angular-bootstrap:fix-65536-reactive-forms-zoneless-docs
Open

docs(forms): clarify zoneless change detection for reactive FormArray updates#67472
angular-bootstrap wants to merge 2 commits intoangular:mainfrom
angular-bootstrap:fix-65536-reactive-forms-zoneless-docs

Conversation

@angular-bootstrap
Copy link

Description

This PR clarifies expected behavior for reactive forms in zoneless applications.

Reactive forms model mutations (for example FormArray.push()) update form state and emit forms observables, but they do not automatically schedule component change detection.

The docs now explicitly recommend connecting reactive forms observables to a change-detection notification (for example ChangeDetectorRef.markForCheck()), or exposing state through signals consumed by the template.

Docs updated

  • guide/forms/reactive-forms: added a zoneless note in the dynamic FormArray section with an example (valueChanges + markForCheck).
  • guide/zoneless: added a short subsection for reactive forms expectations in zoneless mode.

Fixes #65536

Document that reactive forms model mutations (such as FormArray.push) do not schedule component change detection in zoneless apps and show the recommended notification patterns.

Fixes angular#65536
@pullapprove pullapprove bot requested a review from thePunderWoman March 5, 2026 16:28
Use an @component placeholder in the docs snippet and rename the example class to avoid the Component suffix.
@angular-robot angular-robot bot added the area: docs Related to the documentation label Mar 5, 2026
@ngbot ngbot bot added this to the Backlog milestone Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Related to the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pushing to a FormArray doesn't trigger change detection

2 participants