How to unconnect a User Component #589
Unanswered
rohailtaha
asked this question in
Q&A
Replies: 1 comment
-
You'll probably have to write your own custom event to unlink dynamically. Here's how it might work:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to dynamically unlink a component from craft. Once the
connect
function is called, I want to somehow unconnect the corresponding node:I have the following UserComponent:
My
Wrapper
component is like this:Initially
isNodeDisabled
is false. I dynamically set it to true at some time. The Wrapper function rerenders withisNodeDisabled
set to true and correct value ofconnect
prop passed toDivBlock
but the div block remains connected (selectable, hovered etc).I read the craft docs, but there don't seem to be any help.
Beta Was this translation helpful? Give feedback.
All reactions