Open benjick opened 1 year ago
Thanks for the PR! I merged it and pushed a version to npm. Personally I haven't used it with SSR, so can't advice much. If something could be changed in a library to make it easier, PRs are more than welcome!
Thanks @Shaddix!
Hey! Great library, thanks for making this!
I'm using it with NextJS but it does not support SSR. I made this change locally: https://github.com/Shaddix/dnd-kit-sortable-tree/pull/9 and then it works if I wrap it with
dynamic
:But it still gives me some issues with
document
if I don't wrap it indynamic
. I think it's related to this line: https://github.com/Shaddix/dnd-kit-sortable-tree/blob/0ee9535b547ad79e8b218b93366a03498691cfc5/src/SortableTree.tsx#L257 but I haven't used portals before so I'm not sure how to solve it.Cheers