react-sortable-tree icon indicating copy to clipboard operation
react-sortable-tree copied to clipboard

Cannot have two HTML5 backends at the same time

Open parsagholipour opened this issue 2 years ago • 8 comments

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.

parsagholipour avatar Oct 24 '22 21:10 parsagholipour

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>

nosferatu500 avatar Oct 26 '22 03:10 nosferatu500

Unfortunately rowDirection="rtl" doesn't work in the version and my tree collapses https://imgur.com/9bJwqO8

parsagholipour avatar Oct 26 '22 21:10 parsagholipour

Alpha version doesn't support rtl

nosferatu500 avatar Oct 27 '22 04:10 nosferatu500

RTL got fixed in the stable version 👍

parsagholipour avatar Jan 18 '23 06:01 parsagholipour

Is this issue still alive in stable version?

kenanyildiz avatar Feb 16 '23 07:02 kenanyildiz

Is this issue still alive in stable version?

No

parsagholipour avatar Feb 17 '23 19:02 parsagholipour

I try the alpha version but this issue is still alive

Ayan-Amir avatar Sep 18 '23 06:09 Ayan-Amir

The library do not support React.Strict mode.

nosferatu500 avatar Sep 18 '23 06:09 nosferatu500