frontend-collective/react-sortable-tree

Duplication of nodes in dom during scroll

y-lazarenka opened this issue · 0 comments

Problem

When new nodes added while scrolling, some of the nodes are duplicated in the dom, regardless that treeData stays valid.
The problem occurs only when you try to update several parent nodes at once and only during scrolling.
Any suggestions?

CodeSandbox

Try to scroll container during the append operation (new nodes are added every 3s)
https://codesandbox.io/s/vigilant-sound-ccgzq

Screenshots

b858cc91-e388-459d-a1f4-b9eb07244963

Screenshot_159

Screenshot_160