-
Notifications
You must be signed in to change notification settings - Fork 181
Open
Labels
demodocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
Hi!
This is related to #127 Lazy loading children when parent is opened.
Can you guys please provide a pattern/pseudo code or some advice on how to implement it?
What I can gather from the docs is that I think I need to have a controlled component like this. But I have more questions.
Some concerns that I need advice on:
- The data prop can be a huge nested JSON. So, manipulating mutating it will require some optimisations. I don't know what would be a good way to go about this.
- Can the data prop be a flat array of objects referencing their parent by a
id: stringwithout being nested likechildren: []? - I saw some built in tree manipulating functions inside the react-arborist's codebase. It would be great if those functions can be re-used in controlled component too.
Desperately need some advice or some pseudo codes.
Thank you!
(Found your HackerNews comment)
Metadata
Metadata
Assignees
Labels
demodocumentationImprovements or additions to documentationImprovements or additions to documentation