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

Not able to toggle node if there is no children #21

Open
iamparnab opened this issue Feb 12, 2019 · 1 comment
Open

Not able to toggle node if there is no children #21

iamparnab opened this issue Feb 12, 2019 · 1 comment

Comments

@iamparnab
Copy link

I am trying to make a component hierarchy with this package. The only problem I am facing is toggling the state if I am not preloading it with children data. I need to asynchronously load children data on toggle action, but the code is checking the length of children array. Is it possible for you add a property like hasChildren or willHaveChildren instead of using the children array length?

@iamparnab
Copy link
Author

Please review my Pull Request

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

1 participant