angular/packages/forms
arturovt f43bad4d7b perf(forms): avoid spurious recomputation in FormField.parseErrors
`parseErrors` in `FormField` always produced a new array on every recomputation, even when nothing actually changed. The `?? []` fallback created a new empty array whenever `parseErrorsSource` was undefined, and `.map()` also returned new object references each time.

Since computed signals use reference equality by default, those new arrays were treated as changed values. That caused unnecessary updates to propagate through `validationState.parseErrors` and the combined errors chain, triggering extra recomputations during change detection.

Fix this by adding `{equal: shallowArrayEquals}` to the `parseErrors` computed, matching the existing `errors` computed and the validation computeds in `field/validation.ts`.

This prevents empty arrays from triggering updates while still correctly propagating real parse-error changes.
2026-05-18 13:08:33 -07:00
..
signals perf(forms): avoid spurious recomputation in FormField.parseErrors 2026-05-18 13:08:33 -07:00
src refactor(core): use the @Service decorator where possible. 2026-05-07 17:03:30 -06:00
test ci: remove remainings of saucelabs tests 2026-04-22 14:41:03 -07:00
BUILD.bazel build: cleanup workspace deps 2026-04-23 11:38:26 -07:00
index.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
package.json refactor(forms): add provideExperimentalWebMcpForms 2026-05-15 11:35:22 -07:00
PACKAGE.md build: format md files 2025-11-06 10:03:05 -08:00
public_api.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00