slate-react-dnd-plugin icon indicating copy to clipboard operation
slate-react-dnd-plugin copied to clipboard

Example in Readme is Not working

Open linonetwo opened this issue 7 years ago • 4 comments

See https://stackblitz.com/edit/react-dhyzf3

linonetwo avatar Apr 28 '18 02:04 linonetwo

Though ./example is working.

linonetwo avatar Apr 28 '18 02:04 linonetwo

Heya, thanks for pointing that out! I'm currently AFK and dunno when I've time to look into this, but you might be right. The readme might be outdated.

gorillamoe avatar Apr 28 '18 08:04 gorillamoe

The reason seems to be that the package declares DnDProvider - but with an empty return. That triggers a error: DnDProvider(...): Nothing was returned from render.

In ./examples DnDProvider is not imported from the package but actually from the source file itself, in the ./dist directory. So I'm guessing this needs a updated package. When do you think that could happen?

danielsetreus avatar Oct 17 '18 15:10 danielsetreus

needs an update it's written still with the change() method which is deprecated since 0.43 change log here

andreikho avatar Feb 15 '19 05:02 andreikho