Prototype of the RxJS interop layer for signals by alxhub · Pull Request #49154 · angular/angular

tomalaforge

kbrilla

GabrielBB

ajafff

GabrielBB

GabrielBB

jakovljevic-mladen

jelbourn

jnizet

@alxhub alxhub marked this pull request as ready for review

February 23, 2023 22:58

elgreco247

josephperrott

pkozlowski-opensource

pkozlowski-opensource

pkozlowski-opensource

pkozlowski-opensource

pkozlowski-opensource

pkozlowski-opensource

pkozlowski-opensource

@alxhub alxhub added action: merge

The PR is ready for merge by the caretaker

and removed action: review

The PR is still awaiting reviews from at least one requested reviewer

labels

Mar 29, 2023

@pkozlowski-opensource

We've been experimenting with the DeepReadonly type that would make
signal values deeply read-only and prevent accidental changes without
going to the owner of data. What we've found out during the experiments
is that additional safety net has more drawbacks than benefits: it just
introduces too much friction to be practical for daily usage.

pkozlowski-opensource

pkozlowski-opensource

pkozlowski-opensource

This commit adds the infrastructure for `@angular/core/rxjs-interop`, a new
core entrypoint which provides bidirectional interoperability between
Angular's built-in reactivity system of synchronous signals, and the RxJS
`Observable` abstraction.

The new entrypoint is set up as an empty shell in this commit, with its
implementation to follow in a followup.
This commit adds the basic sketch for the implementation of `fromObservable`
and `fromSignal`, the two basic primitives which form the RxJS interop layer
with signals.
This commit implements an RxJS operator `takeUntilDestroyed` which
terminates an Observable when the current context (component, directive,
etc) is destroyed. `takeUntilDestroyed` will inject the current `DestroyRef`
if none is provided, or use one provided as an argument.

jessicajaniuk

jessicajaniuk

atscott pushed a commit that referenced this pull request

Mar 30, 2023
This commit adds the infrastructure for `@angular/core/rxjs-interop`, a new
core entrypoint which provides bidirectional interoperability between
Angular's built-in reactivity system of synchronous signals, and the RxJS
`Observable` abstraction.

The new entrypoint is set up as an empty shell in this commit, with its
implementation to follow in a followup.

PR Close #49154

atscott pushed a commit that referenced this pull request

Mar 30, 2023
…49154)

This commit adds the basic sketch for the implementation of `fromObservable`
and `fromSignal`, the two basic primitives which form the RxJS interop layer
with signals.

PR Close #49154

atscott pushed a commit that referenced this pull request

Mar 30, 2023
This commit implements an RxJS operator `takeUntilDestroyed` which
terminates an Observable when the current context (component, directive,
etc) is destroyed. `takeUntilDestroyed` will inject the current `DestroyRef`
if none is provided, or use one provided as an argument.

PR Close #49154