Skip to content
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

feat: toPromise removed. #6598

Merged
merged 1 commit into from
Sep 19, 2021
Merged

Conversation

benlesh
Copy link
Member

@benlesh benlesh commented Sep 14, 2021

BREAKING CHANGE: toPromise has been removed from Observable. As a workaround, use firstValueFrom and lastValueFrom functions, which can be imported from rxjs. For example source$.toPromise() would be lastValueFrom(source$). In the case that you know your source only has one value, we recommend using firstValueFrom(source$).

@benlesh benlesh added the 8.x Issues and PRs for version 8.x label Sep 14, 2021
BREAKING CHANGE: `toPromise` has been removed from `Observable`. As a workaround, use `firstValueFrom` and `lastValueFrom` functions, which can be imported from `rxjs`. For example `source$.toPromise()` would be `lastValueFrom(source$)`. In the case that you know your source only has one value, we recommend using `firstValueFrom(source$)`.
@benlesh benlesh force-pushed the v8-remove-toPromise branch from 8a55c8d to a19f3a7 Compare September 19, 2021 00:01
@benlesh benlesh merged commit 8233648 into ReactiveX:8.x Sep 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.x Issues and PRs for version 8.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants