docs(forms): clarify zoneless change detection for reactive FormArray updates#67472
Open
angular-bootstrap wants to merge 2 commits intoangular:mainfrom
Open
docs(forms): clarify zoneless change detection for reactive FormArray updates#67472angular-bootstrap wants to merge 2 commits intoangular:mainfrom
angular-bootstrap wants to merge 2 commits intoangular:mainfrom
Conversation
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
SkyZeroZx
reviewed
Mar 5, 2026
Use an @component placeholder in the docs snippet and rename the example class to avoid the Component suffix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 dynamicFormArraysection with an example (valueChanges+markForCheck).guide/zoneless: added a short subsection for reactive forms expectations in zoneless mode.Fixes #65536