-
Notifications
You must be signed in to change notification settings - Fork 27k
refactor(core): finalize rxjs-interop options & docs #50071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5986ac6 to
6459d38
Compare
AndrewKushnir
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-for: public-api
dylhunn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: fw-core, public-api
This commit introduces an interface for `toSignal` options to mirror that of `toObservable`, and adjusts docs for both symbols. It also adds the ability for `toSignal` to manually specify `DestroyRef` (similarly to `toObservable` accepting an injector) or for `toSignal` automatic cleanup to be disabled (in which case the subscription persists until the Observable completes). Either option allows `toSignal` to be used outside of a DI context, like `toObservable`.
6459d38 to
d9c058f
Compare
atscott
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: public-api
|
This PR was merged into the repository by commit cc89766. |
This commit introduces an interface for `toSignal` options to mirror that of `toObservable`, and adjusts docs for both symbols. It also adds the ability for `toSignal` to manually specify `DestroyRef` (similarly to `toObservable` accepting an injector) or for `toSignal` automatic cleanup to be disabled (in which case the subscription persists until the Observable completes). Either option allows `toSignal` to be used outside of a DI context, like `toObservable`. PR Close #50071
This commit introduces an interface for `toSignal` options to mirror that of `toObservable`, and adjusts docs for both symbols. It also adds the ability for `toSignal` to manually specify `DestroyRef` (similarly to `toObservable` accepting an injector) or for `toSignal` automatic cleanup to be disabled (in which case the subscription persists until the Observable completes). Either option allows `toSignal` to be used outside of a DI context, like `toObservable`. PR Close angular#50071
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This commit introduces an interface for
toSignaloptions to mirror that oftoObservable, and adjusts docs for both symbols. It also adds the ability fortoSignalto manually specifyDestroyRef(similarly totoObservableaccepting an injector) or fortoSignalautomatic cleanup to be disabled (in which case the subscription persists until the Observable completes). Either option allowstoSignalto be used outside of a DI context, liketoObservable.PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information