chenglou / react-treeview

Easy, light, flexible tree view made with React.
1.09k stars 165 forks source link

Added support for lazy-loading children, for improved performance #34

Closed spiffytech closed 8 years ago

spiffytech commented 8 years ago

Huge trees (e.g., a 10k-song music library) perform very poorly - all those DOM nodes create too much work for the browser.

This patch adds optional support for lazy-loading children into the DOM, so the browser only has to render the top-level of each collapsed tree instead of the entire tree.

LorbusChris commented 8 years ago

I would need this feature as well, can this expected to be merged anytime soon?

chenglou commented 8 years ago

I just merged #29, which does the same thing but without the lazy configuration. I think this new behavior makes sense. Closing this one!

Thanks and sorry for the delay.