frontend-collective / frontend-collective/react-sortable-tree-theme-file-explorer

Not able to toggle node if there is no children

Open
#21 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
140
Forks
93
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.