angular/aio/content
Alex Rickabaugh 7bb3ffb77f fix(core): add rejectErrors option to toSignal (#52474)
By default, `toSignal` transforms an `Observable` into a `Signal`, including
the error channel of the Observable. When an error is received, the signal
begins throwing the error.

`toSignal` is intended to serve the same purpose as the `async` pipe, but
the async pipe has a different behavior with errors: it rejects them
outright, throwing them back into RxJS. Rx then propagates the error into
the browser's uncaught error handling logic. In the case of Angular, the
error is then caught by zone.js and reported via the application's
`ErrorHandler`.

This commit introduces a new option for `toSignal` called `rejectErrors`.
With that flag set, `toSignal` copies the async pipe's behavior, allowing
for easier migrations.

Fixes #51949

PR Close #52474
2023-10-31 14:59:26 -07:00
..
blocks/core docs: control flow API reference (#52397) 2023-10-27 12:56:51 -07:00
cli docs: update Angular CLI help [main] (#52330) 2023-10-23 13:46:28 -07:00
demos/first-app build: disable TS version checks on AIO (#51792) 2023-09-19 12:04:09 +02:00
errors docs: update SSR doc to reflect version 17 (#52398) 2023-10-26 12:30:59 -07:00
examples docs: update SSR docs (#52408) 2023-10-27 15:16:14 -07:00
extended-diagnostics docs: Update control flow diagnostic to direct devs to built-ins (#52268) 2023-10-19 09:24:08 -07:00
guide fix(core): add rejectErrors option to toSignal (#52474) 2023-10-31 14:59:26 -07:00
images docs: add thomas laforge to GDE resources and add angularchallenges to resources (#52075) 2023-10-16 11:12:52 +02:00
marketing docs: update home page for live stream event (#52456) 2023-10-31 11:58:16 -07:00
special-elements docs: selector precisions (#50534) 2023-06-01 08:43:59 -07:00
start docs: Added missing explanation of implements OnInit (#51634) 2023-09-05 20:08:56 +00:00
tutorial docs(docs-infra): fix typo in tap into the observable tutorial example (#52359) 2023-10-27 12:49:37 -07:00
BUILD.bazel ci: add Angular CLI help pages action (#48577) 2023-01-10 08:01:38 -08:00
file-not-found.md docs: fix casing of image alt in page not found (#51432) 2023-08-29 23:30:51 +00:00
license.md docs: updated the http tag with https (#50927) 2023-07-14 09:44:55 -07:00
navigation.json docs: update defer guide to use Deferrable View language (#52457) 2023-10-31 14:55:48 -07:00