-
Notifications
You must be signed in to change notification settings - Fork 6
connect.dragLayer is not a function #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not sure tbh, sorry. We aren't using this much at the moment, and are currently leaning towards replacing the one place it's used rather than updating it. If you end up figuring it out and make a PR I'll merge it, but it might be better to build something new off of the latest |
Okay thank you @spicydonuts |
I don't mind leaving this open though, since there does seem to be an issue |
#12 probably obsoletes this issue |
I'm trying to use
DragDrop.dragLayer :: DragLayerProps item -> JSX
so that I can render a drag ghost withopacity:0.2
. Every way I try it, I get the exception:thrown from here:
https://github.com/lumihq/purescript-react-dnd-basic/blob/e3a5a49654e843dea6ab363511ca7ae8ac3dfa49/src/React/Basic/ReactDND.js#L161
And in fact there is no
dragLayer
function inconnect
:I'm depending on purescript-react-dnd-basic v6.1.4 with react-dnd v2.6.0.
It's not obvious to me how to use
DragDrop.dragLayer
. Should it be a parent or child ofDragDrop.dragSource
? Is this feature known to work in purescript-react-dnd-basic? Is there an example somewhere of how to use it?The text was updated successfully, but these errors were encountered: