constantin-p / cp-react-tree-table

A fast, efficient tree table component for ReactJS.
https://constantin.software/cp-react-tree-table
MIT License
94 stars 27 forks source link

Performance Issue On Scroll #37

Closed thekennysong closed 3 years ago

thekennysong commented 3 years ago

Love this repo! I've been looking at the demo and comparing it to my local implementation to see why I'm having performance issues when scrolling up and down many times. Anyone else running into this issue? I have some rows where there are 6 levels of nesting and I have around 400 rows. My hunch is there is some sort of throttling that is being done in the demo somehow but not being done in my implementation due to the screen being blank for a second before the rows render on scroll versus locally there is no blank screen. I am using beta 10.

Best,

Kenny Song

Edit: I just added lodash's throttle to the onScroll function within VirtualList and it's working just fine now.