react-component / react-component/tree
onLoad at TreeNode level
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 490
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 5
Description
In my scenario, I need to seed the tree with the first two levels of data and specify an async load function only for third level nodes (if there are any). It does not look like there is a clean way to accomplish this with rc-tree.
I attempted to specify a function for the tree-level onLoad prop and put conditional logic to only fire my async data call if it's a third-level node. The problem with this is now every tree node has an expand icon even though the first two levels are already defined. I also found that when I implemented this, the tree was altogether slow.
Please advise.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the tree-level onLoad prop and TreeNode expansion behavior in the repository; the issue names no files or tests. Done means third-level nodes can load asynchronously while preloaded first- and second-level nodes do not show unnecessary expand icons or introduce the reported slowdown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100