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

Pass observables across components? #15

Closed
ghost opened this issue Jan 17, 2018 · 1 comment
Closed

Pass observables across components? #15

ghost opened this issue Jan 17, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 17, 2018

I am trying to pass an observable between two web components (e.g. a parent and a child). I was hoping to put a reaction in the render method of both components based on the same observable (I am passing the observable from the parent to the child on the HTMLElement.data property). Then if the observable was modified by either component, it would re-render either/both as appropriate.

What I am seeing however is that the reactions only fire in the element where the observable is created. Is this the intended behavior?

@ghost
Copy link
Author

ghost commented Jan 17, 2018

Sorry - I had a mistake in my code that was causing the problem.

@ghost ghost closed this as completed Jan 17, 2018
This issue was closed.
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

0 participants