angular/packages/core/test/render3
Andrew Scott 338818ce89 fix(core): Surface errors from ApplicationRef.tick to callsite (#60102)
This commit ensures that errors during `ApplicationRef.tick` are
surfaced to the callsite rather than being caught and reported to the
`ErrorHandler`.

The current catch and report approach was originally
added in e263e19a2a
with the goal of preventing automatic change detection crashes due to
the error happening in the subscription. However, this results in hiding
a public API that can hide errors. Callers cannot assume that the tick
was successful and perform follow-up work.

This change now surfaces errors and adds the error handling directly to
the callsites.

BREAKING CHANGE: `ApplicationRef.tick` will no longer catch and report
errors to the appplication `ErrorHandler`. Errors will instead be thrown out of
the method and will allow callers to determine how to handle these
errors, such as aborting follow-up work or reporting the error and
continuing.

PR Close #60102
2025-03-10 08:17:14 -07:00
..
i18n refactor(core): move TNode manipulation logic to its own file (#59601) 2025-01-21 10:48:44 -08:00
instructions refactor(core): drop render-related perf counters (#60200) 2025-03-06 10:33:54 -08:00
interfaces refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
ivy refactor(core): simplify how inputs are stored in the directive definition (#59980) 2025-02-18 19:27:59 +00:00
jit refactor(core): Remove the optional flag from Injector and all casts. (#60154) 2025-03-05 13:43:59 -08:00
styling_next refactor(core): move TNode manipulation logic to its own file (#59601) 2025-01-21 10:48:44 -08:00
util refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
BUILD.bazel fix(core): untrack various core operations (#54614) 2024-02-29 11:38:54 +01:00
change_detection_spec.ts test(core): clean up explicit standalone flags from tests (#60062) 2025-02-24 11:27:44 -05:00
component_ref_spec.ts test(core): clean up explicit standalone flags from tests (#60062) 2025-02-24 11:27:44 -05:00
deps_tracker_spec.ts test(core): clean up explicit standalone flags from tests (#60062) 2025-02-24 11:27:44 -05:00
di_spec.ts test(core): clean up explicit standalone flags from tests (#60062) 2025-02-24 11:27:44 -05:00
es2015-tsconfig.json fix(core): destroy hooks not set up for useClass provider using forwardRef (#44281) 2021-11-30 11:56:05 -05:00
global_utils_spec.ts feat(core): add utility for resolving defer block information to ng global (#59184) 2024-12-16 10:26:43 -08:00
i18n_debug_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
imported_renderer2.ts feat(core): add event listener options to renderer (#59092) 2024-12-10 13:39:47 -08:00
instructions_spec.ts refactor(core): drop render-related perf counters (#60200) 2025-03-06 10:33:54 -08:00
integration_spec.ts test(core): clean up explicit standalone flags from tests (#60062) 2025-02-24 11:27:44 -05:00
is_shape_of.ts refactor(core): track match index of directives (#60075) 2025-02-25 10:58:50 -05:00
is_shape_of_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
jit_environment_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
list_reconciliation_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
load_domino.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
matchers.ts docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
matchers_spec.ts refactor(core): move LContainer manipulation logic to its own file (#59856) 2025-02-18 15:41:42 +00:00
metadata_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
multi_map_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
node_selector_matcher_spec.ts refactor(core): simplify attributes extraction logic for ComponentRef (#59678) 2025-01-27 13:15:21 +01:00
providers_helper.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
providers_spec.ts test(core): clean up explicit standalone flags from tests (#60062) 2025-02-24 11:27:44 -05:00
query_spec.ts test(core): clean up explicit standalone flags from tests (#60062) 2025-02-24 11:27:44 -05:00
reactive_safety_spec.ts refactor(core): remove microtask effect (#60234) 2025-03-06 12:48:55 -08:00
reactivity_spec.ts fix(core): Surface errors from ApplicationRef.tick to callsite (#60102) 2025-03-10 08:17:14 -07:00
testing_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
utils.ts docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
view_fixture.ts refactor(core): move LContainer manipulation logic to its own file (#59856) 2025-02-18 15:41:42 +00:00
view_utils_spec.ts refactor(core): move LContainer manipulation logic to its own file (#59856) 2025-02-18 15:41:42 +00:00