mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit adds support for creating `resource()`s with streaming response
data. A streaming resource is defined by a `stream` option instead of a
`loader`, with `stream` being a function returning
`Promise<Signal<{value: T}|{error: unknown}>>`. Once the streaming loader
resolves to a `Signal`, it can continue to update that signal over time, and
the values (or errors) will be delivered to via the resource's state.
`rxResource()` is updated to leverage this new functionality to handle
multiple responses from the underlying Observable.
PR Close #59573
|
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| output_from_observable_spec.ts | ||
| output_to_observable_spec.ts | ||
| pending_until_event_spec.ts | ||
| rx_resource_spec.ts | ||
| take_until_destroyed_spec.ts | ||
| to_observable_spec.ts | ||
| to_signal_spec.ts | ||