You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only the inner call works (in this case, connectDropTarget, but if I swap connectDropTarget and connectDragSource, then only connectDragSource will work).
I wonder how this is happening, because the connector functions are supposed to return a cloned ReactElement, and it's weird that it works fine in a rendering context. Interested to hear the explanation if any should happen to appear. :-)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The example is:
But using the alternative ways to connect, such a passing ref (using innerRef because I'm using
styled-components
), if I do:Only the inner call works (in this case,
connectDropTarget
, but if I swapconnectDropTarget
andconnectDragSource
, then onlyconnectDragSource
will work).This works, though:
Any reason why?
The text was updated successfully, but these errors were encountered: