Scroll issue with DND kit sortable and tanstack/react-virtual
I have a large table that I'm using virtualization to render the rows. When Dnd is not implemented, the scroll behavior on the virtualization is working smoothly as expected. However once I implement dnd sortable, the scroll (virtualization) becomes laggy and slow. I'm following the implementing of column dnd here but this example does not include virtualization which then makes the scroll laggy.
I suspect this issue occurs due to how both libraries handle event listeners and scroll management. Any guidance or possible workarounds would be appreciated.
any one knows solution for this ?
Try using @dnd-kit/react (follow instructions on next.dndkit.com), if you still face issues, share a CodeSandbox replicating the issue.
Tbh, I'm now realizing that the scroll lag may only be happening locally. When I run it in production build mode, its much faster!
Try using
@dnd-kit/react(follow instructions on next.dndkit.com), if you still face issues, share a CodeSandbox replicating the issue.
does that mean the older one have this issue ?