question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Drop deprecated `toPromise` and use `lastValueFrom` operator

See original GitHub issue

Rxjs refactoring to drop the deprecated toPromise method in favor of the lastValueFrom operator.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
hinogicommented, Oct 15, 2021

Seems like #324 also fixed #342

0reactions
hinogicommented, Oct 14, 2021

Also, there is a version conflict between rxjs 6 and 7 in the semver package for lastValueFrom v7 is required

+-- @nrwl/devkit@12.10.0
| +-- @nrwl/tao@12.10.0
| | +-- rxjs-for-await@0.0.2
| | | `-- rxjs@6.6.7 deduped
| | `-- rxjs@6.6.7 deduped
| `-- rxjs@6.6.7
+-- @types/inquirer@8.1.3
| `-- rxjs@7.4.0
`-- inquirer@8.2.0
  `-- rxjs@7.4.0
Read more comments on GitHub >

github_iconTop Results From Across the Web

RxJS heads up: toPromise is being deprecated - InDepth.Dev
In RxJS 7 toPromise will become deprecated and with RxJS 8 it will be gone! So avoid using toPromise in your future development...
Read more >
Resolve topromise Deprecated with lastValueFrom in Calling ...
In this video, I will demo how to Resolve topromise Deprecated with lastValueFrom in Calling Web API in AngularTo download all sources code ......
Read more >
RxJS 7 and Beyond: What to Expect and Prepare For
toPromise operator will be deprecated in RxJS 7 and it will be removed ... In its place, you'll find firstValueFrom() and lastValueFrom() ....
Read more >
RxJS 6.x to 7.x Detailed Change List
Simply renamed versions of the operators zip , concat , merge , and race . So we can deprecate those old names and...
Read more >
Error while importing RxJS operators in Angular - Stack Overflow
import { catchError, tap } from 'rxjs/operator'; ... Also, if you're using toPromise you need to know that it is being deprecated in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found