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

Initial value of BehaviorSubject is not being rendered #4

Closed
dragantl opened this issue Mar 24, 2016 · 1 comment
Closed

Initial value of BehaviorSubject is not being rendered #4

dragantl opened this issue Mar 24, 2016 · 1 comment

Comments

@dragantl
Copy link

Interesting behavior in Vue. You can see from example that BehaviorSubject is initialized with false and it is clear that self[key] = value works. However, the vm doesn't pick it up.

https://jsfiddle.net/ardoramor/L08jm958/2/

@yyx990803
Copy link
Member

Looks like it's because the subscribe callback passed to BehaviorSubject is called synchronously.

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

2 participants