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

observeOn operator not being migrated #39

Open
marcelgood opened this issue May 15, 2018 · 1 comment
Open

observeOn operator not being migrated #39

marcelgood opened this issue May 15, 2018 · 1 comment

Comments

@marcelgood
Copy link

I'm using observeOn and the async scheduler in a few places. But it gets migrated to something that still requires rxjs-compat. And for the life of me I can't find how this is supposed to be done in RxJS 6. The migration documentation is frankly horrific!

So basically the migration tool leaves me with

import { async } from 'rxjs/scheduler/async';

this.leftNavVisibleSubject.pipe(
            distinctUntilChanged(),
            observeOn(async));

This fails to compile as soon as I drop rxjs-compat and as said I've been pulling my hair trying to find how this is supposed to be migrated.

@marcelgood
Copy link
Author

Figured out what it should be migrated to

import { asyncScheduler } from 'rxjs'

this.leftNavVisibleSubject.pipe(
            distinctUntilChanged(),
            observeOn(asyncScheduler));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant