Replies: 1 comment
-
|
Try to add I had almost the same setup like you but instead of DB I had Zustand store. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the experimental/next version of dnd-kit. I'm using React/Next.js and the useSortable hook for arranging blocks vertically. Some blocks have child containers and I can drag sortable blocks into those child containers.
I also have a database using Convex that is mutated after every move of a block.
Moving blocks in a single list works fine, but when moving a block into the child container of another, the database is updated and then the query tries to render the blocks but gives this:
Error: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
Has anyone has an experience with this? Is there anything I can do with dnd-kit to avoid this?
Thanks for any pointers.
Beta Was this translation helpful? Give feedback.
All reactions