react-dnd / react-dnd-html5-backend

HTML5 backend for React DnD [Legacy Repo]
MIT License
146 stars 97 forks source link

Delegate to existing backend instead of throwing new Error('Cannot have two HTML5 backends at the same time.'); #54

Open nomcopter opened 7 years ago

nomcopter commented 7 years ago

I have an app that uses the HTML5 backend for drop and drop internally. I want to use a sub-component that also uses it independently, but in the same app. Currently this is only possible if I can actually make changes to this sub-component to remove it's DragContext or export one without which seems unnecessary.

jcrogel commented 7 years ago

+1

martinnov92 commented 7 years ago

Is someone working on this? I would like to use React-Big-Calendar with drag and drop support and my own drag and drop component, but I can´t make it work, because of this :/ unless I remove backend from react big calendar, but that is not a good solution...

sudhiryadav commented 7 years ago

@martinnov92 did you found the solution ?

martinnov92 commented 7 years ago

@sudhiryadav Nope :/, I created pull request to React Big Calendar to export it without React DnD context. It has been approved and now waiting for merge...