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

Make more helper functions to navigate the component tree #81

Open
mitar opened this issue Oct 7, 2015 · 1 comment
Open

Make more helper functions to navigate the component tree #81

mitar opened this issue Oct 7, 2015 · 1 comment

Comments

@mitar
Copy link
Member

mitar commented Oct 7, 2015

So while there are functions to navigate one level of component tree, there should be also functions which navigate multiple levels, do it recursively. Imagine a jQuery selectors for selecting ancestor or descendant components.

The issue is that often you would want to find the first component matching some condition, not all of them. So it might be good to provide this as an iterator?

We should also document this and explain proposed use (finding by matching on some property and not number of levels, accessing components' state/public API). Explain that moving across data contexts is fragile and that better is to move between components and then call .data() on them (or any other state, reactive field).

@mitar mitar changed the title Make more helper fucntions to navigate the component tree Make more helper functions to navigate the component tree Oct 13, 2015
@janat08
Copy link
Contributor

janat08 commented Aug 11, 2017

So maybe static methods could be passed down to children automatically, and with them being aware of their parents, they could just invoke method within parent to whom method belongs.

PS read #82

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