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

fix(ScalarObservable): set _isScalar to false when initialized with a scheduler. #1674

Closed
wants to merge 1 commit into from

Conversation

trxcllnt
Copy link
Member

Description:
ScalarObservable's _isScalar flag was permanently true, even if initialized with a scheduler. This caused our internal subscribeToResult helper to short-circuit subscribing to the ScalarObservable, so the emission was never scheduled. This PR changes that.

Related issue (if exists):
None yet.

@kwonoj
Copy link
Member

kwonoj commented Apr 29, 2016

Can we think of some test cases for this? (not sure, just throwing out idea)

@benlesh
Copy link
Member

benlesh commented Apr 30, 2016

Agree. Should add a test or two

@benlesh
Copy link
Member

benlesh commented May 2, 2016

I'm going to add a couple of tests and merge this today. No worries, @trxcllnt

benlesh added a commit that referenced this pull request May 2, 2016
@benlesh
Copy link
Member

benlesh commented May 2, 2016

Merged as of bea15ca... thanks @trxcllnt!

@benlesh benlesh closed this May 2, 2016
@trxcllnt trxcllnt deleted the fix-scalar-scheduler branch May 9, 2016 21:36
@lock
Copy link

lock bot commented Jun 7, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants