Skip to content

perf(forms): avoid redundant invalidations in parser errors signal#68830

Merged
alxhub merged 1 commit into
angular:mainfrom
arturovt:perf/forms_createParser_errors_equality
May 21, 2026
Merged

perf(forms): avoid redundant invalidations in parser errors signal#68830
alxhub merged 1 commit into
angular:mainfrom
arturovt:perf/forms_createParser_errors_equality

Conversation

@arturovt
Copy link
Copy Markdown
Contributor

The errors linkedSignal in createParser had no equality check, so every reset or recomputation — even to an identical empty array — would mark downstream dependents as dirty and trigger unnecessary re-renders.

Add shallowArrayEquals as the equality function so the signal only notifies dependents when the error list actually changes.


image

The `errors` linkedSignal in `createParser` had no equality check, so
every reset or recomputation — even to an identical empty array — would
mark downstream dependents as dirty and trigger unnecessary re-renders.

Add `shallowArrayEquals` as the equality function so the signal only
notifies dependents when the error list actually changes.
@pullapprove pullapprove Bot requested a review from JeanMeche May 20, 2026 18:42
@angular-robot angular-robot Bot added area: performance Issues related to performance area: forms labels May 20, 2026
@ngbot ngbot Bot modified the milestone: Backlog May 20, 2026
@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker target: rc This PR is targeted for the next release-candidate labels May 20, 2026
@alxhub alxhub merged commit 1563aae into angular:main May 21, 2026
25 checks passed
@alxhub
Copy link
Copy Markdown
Member

alxhub commented May 21, 2026

This PR was merged into the repository. The changes were merged into the following branches:

@arturovt arturovt deleted the perf/forms_createParser_errors_equality branch May 21, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: forms area: performance Issues related to performance target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants