Prototype of the RxJS interop layer for signals by alxhub · Pull Request #49154 · angular/angular
alxhub
marked this pull request as ready for review
alxhub
added
action: merge
and removed action: review
The PR is still awaiting reviews from at least one requested reviewerlabels
Mar 29, 2023We'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.
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.
atscott pushed a commit that referenced this pull request
Mar 30, 2023This 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, 2023atscott pushed a commit that referenced this pull request
Mar 30, 2023This 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters