angular/packages/core/src/change_detection
Andrew Scott 491b0a4ead fix(core): Remove duplicate reporting of errors in CDR.detectChanges (#60056)
This change removes the reporting of errors from the
`ChangeDetectorRef.detectChanges` API. The reporting results in the
error being "handled" in two ways, both by reporting to error handler
and rethrowing the error. This rethrown error generally ends up being
caught further up and again reported to the error handler. The error
handler is meant to be for uncaught errors, and since Angular is not at
the top of the stack of the call of `CDR.detectChanges`, it does not
know what is being done with the rethrown error.

Note that for zone-based applications, this will likely have no effect
other than removing duplicate reporting of the error. If the rethrown
error is not already being caught, it will reach the NgZone's error
trap and still be reported to the application `ErrorHandler`.

PR Close #60056
2025-02-25 12:20:22 -05:00
..
differs docs: set syntax highlighting to the remaining Markdown code examples blocks (#59088) 2025-01-14 15:14:02 -05:00
scheduling fix(core): Remove duplicate reporting of errors in CDR.detectChanges (#60056) 2025-02-25 12:20:22 -05:00
change_detection.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
change_detector_ref.ts refactor(docs-infra): convert code-example-s that have only region param to @example-s (#59004) 2024-12-04 18:05:59 +01:00
constants.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
pipe_transform.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00