Skip to content

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

Open
arturovt wants to merge 1 commit into
angular:mainfrom
arturovt:perf/forms_createParser_errors_equality
Open

perf(forms): avoid redundant invalidations in parser errors signal#68830
arturovt wants to merge 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
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.

2 participants