react-arborist icon indicating copy to clipboard operation
react-arborist copied to clipboard

Inifinite Scrolling within Branches?

Open httpete opened this issue 5 months ago • 2 comments

Hi, and thank you for your library. We have insanely large trees, and have branches that need to be loaded in "pages". Is it possible to have a branch that when opened allows us to customize the fetching to get parts (pages) of a branch and load them in an infinite scroll way? Thank you for reading.

httpete avatar Jan 18 '24 18:01 httpete

Yes, you completely control the data that you give to react-arborist. The data fetching logic is up to you. You will have to detect when to fetch the next page. I haven't needed to do that, but it is possible.

jameskerr avatar Jan 18 '24 18:01 jameskerr

Note to add an example with infinite scrolling...

jameskerr avatar Feb 07 '24 17:02 jameskerr