Skip to content

Problem with SSR and Drag and Drop Library #124

Answered by alexclaes
A11yship asked this question in Web
Discussion options

You must be logged in to vote

Okay, that seems to be a hard one.

Everything your did is according to the documentation and solutions I could find. Unfortunately, somehow it doesn't work :-/

There are open issues regarding this topic with react-beautiful-dnd:
atlassian/react-beautiful-dnd#1854
atlassian/react-beautiful-dnd#2175

One comment suggests it might be a conflict with react strict mode. My experience with this library und my quick testing doesn't confirm this idea.
atlassian/react-beautiful-dnd#1854 (comment)

The common solution seems to be, that components using dnd should be rendered on the client only, not the server.

There are different approaches to this, but an easy solution with Next.js are dynamic impor…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by A11yship
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Web
Labels
None yet
2 participants