atlassian / react-beautiful-dnd

Beautiful and accessible drag and drop for lists with React
https://react-beautiful-dnd.netlify.app
Other
33.24k stars 2.53k forks source link

rbd can not work with react-hot-loader ? #1883

Open hzyhbk opened 4 years ago

hzyhbk commented 4 years ago

The standalone example https://github.com/hzyhbk/rbd-example

Expected behavior

rbd can work with react-hot-loader after HMR

Actual behavior

I encountered the same problem as #1584 when using rbd with react-hot-loader , after HMR, rbd can't work.

The browser console reports the following warning.

image

What version of React are you using?

16.13.1

What version of react-beautiful-dnd are you running?

13.0.0

What browser are you using?

Google Chrome 83.0.4103.116

julienben commented 4 years ago

Same issue here. It happens even when updating code outside the DragDropContext.

bencentra-toast commented 3 years ago

Just confirming that this is still an issue with the following versions:

The draggable ids don't actually change, at least as reported by attributes in the DOM. Here's a demo from the example repo:

2021-06-23 12 45 18