serlo / frontend

Next.js app that serves serlo.org
https://serlo.org
Apache License 2.0
38 stars 10 forks source link

sorting entries does not work in dev mode #2986

Closed elbotho closed 1 year ago

elbotho commented 1 year ago

e.g. http://localhost:3000/taxonomy/term/sort/entities/234582 dragging does not work when running with yarn dev, yarn build / yarn start works fine.

error message:

react-beautiful-dnd
Unable to find draggable with id: 234893
👷‍ This is a development only message. It will be removed in production builds.
Entkenntnis commented 1 year ago

I can reproduce.

Known upstream issue, this thread has some more details and potential fixes: https://github.com/atlassian/react-beautiful-dnd/issues/2407

(no, we are not going to disable strict mode 😓)

elbotho commented 1 year ago

Thank you for investgating! not super important anyway. https://github.com/atlassian/react-beautiful-dnd/issues/2407#issuecomment-1648339464 might be worth a try. We should at least write a comment :)

elbotho commented 1 year ago

ended up using @hello-pangea/dnd (fork)