react-dnd / react-dnd

Drag and Drop for React

Home Page:http://react-dnd.github.io/react-dnd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

canDrop invoked permanently?

marvinderksen opened this issue · comments

Thanks for this great library! It is really quite usable once you get the hang of it (the docs however could use some polishing :) )
I got a situation where I need to decide whether an item can be dropped. Using canDrop of useDrop this is easy to accomplish.
Is there any chance I bricked my implementation there as canDrop seems to be invoked every x milliseconds (s. gif below). Is this by design? In this case could you provide an explaination? I was not able to read it off the sources :(

If necessary I can provide a minimal reproduction :)

Ignore the "standalone" logs of canDrop. You will recognize a tremendous amount of logs at the bottom:
dnd-candrop