mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
739cadae62
`AsyncPipe` would previously promise rejections unhandled and subscription errors uncaught. This is more or less fine in a Zone-based application because errors inside the Angular Zone are caught be the Zone's error trap and reported to `ErrorHandler`. However, in zoneless applications, these errors are never caught or reported by the FW and can reach the node process in SSR and cause it to shut down. BREAKING CHANGE: `AsyncPipe` now directly catches unhandled errors in subscriptions and promises and reports them to the application's `ErrorHandler`. For Zone-based applications, these errors would have been caught by ZoneJS and reported to `ErrorHandler` so the result is generally the same. The change to the exact mechanism for reporting can result in differences in test environments that will require test updates. PR Close #60057
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT