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

most-subject async() doesn't work with most-test #9

Open
marcusradell opened this issue Jan 17, 2017 · 3 comments
Open

most-subject async() doesn't work with most-test #9

marcusradell opened this issue Jan 17, 2017 · 3 comments

Comments

@marcusradell
Copy link

Webpackbin reproduced bug: http://www.webpackbin.com/VyTK1Nv8M

It seems like most-test works without the subject, but with the subject, not even the initial state sent to .scan works.

Without subject, I get 1 event and I expect 1.
With subject, I get 0 events and I expect 3 (initial state, press, press delayed 500ms).

@TylorS
Copy link
Member

TylorS commented Jan 17, 2017

This is because most-subject makes use of the defaultScheduler provided by most.js and not the scheduler used by most-test

@axefrog
Copy link
Collaborator

axefrog commented Jan 18, 2017

@TylorS how hard would it be to switch to the scheduler specified by the run() call once it becomes available? You could switch back to the default scheduler if the active stream graph is disposed.

@TylorS
Copy link
Member

TylorS commented Jan 18, 2017

I'm not too sure yet, but I'm going to have to rethink most-subject to work with @most/core to deal with schedulers, as there is no default scheduler anymore.

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

3 participants