react-sortable-tree
react-sortable-tree copied to clipboard
Cannot have two HTML5 backends at the same time
Thank you for this. I've successfully used it in React v18 but I have a problem.
I still get this error Cannot have two HTML5 backends at the same time
when I make a change in the tree(add or remove some items) then open and close a section of the tree.
I tried using DndProvider
+ SortableTreeWithoutDndContext
but the tree doesn't show.
UPD: The library do not support React Strict mode.
@parsagholipour
This issue fixed in alpha build https://www.npmjs.com/package/@nosferatu500/react-sortable-tree/v/6.0.0-alpha.5
New usage in alpha build to resolve this issue is: https://github.com/nosferatu500/react-sortable-tree/blob/25fac2919b1296ccc8e5b384f258c90366a0756f/stories/barebones-no-context.js
Make sure to wrap entry point with DndProvider before:
<DndProvider backend={HTML5Backend}> <App /> </DndProvider>
Unfortunately rowDirection="rtl"
doesn't work in the version and my tree collapses
https://imgur.com/9bJwqO8
Alpha version doesn't support rtl
RTL got fixed in the stable version 👍
Is this issue still alive in stable version?
Is this issue still alive in stable version?
No
I try the alpha version but this issue is still alive
The library do not support React.Strict mode.