nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.94k stars 1.53k forks source link

[Feature Request] add containerNode prop to useInfiniteScroll #3259

Open webdeb opened 4 months ago

webdeb commented 4 months ago

Is your feature request related to a problem? Please describe.

My list is deep inside the app, the scrollContainer is for example the body, there is no way to provide the containerRef to this node.

Describe the solution you'd like

add a prop containerNode to the props list:

Bildschirmfoto 2024-06-16 um 04 29 18

And use it in the case the ref is not provided.

Bildschirmfoto 2024-06-16 um 04 29 39

Describe alternatives you've considered

no

Screenshots or Videos

No response

linear[bot] commented 4 months ago

ENG-1014 [Feature Request] add containerNode prop to useInfiniteScroll