Replies: 1 comment
-
Interestingly, |
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
-
Interestingly, |
Beta Was this translation helpful? Give feedback.
-
I am hoping someone can shed some light on what is happening with
useCurrentElement
. My use case is as followsUsed liked this
The
console.log
above print#text
node. I thought to myself, OK slot not a real element, so let me wrap<div>
aroundslot
. That still doesn't work. I expectel
above to be<a>
. Is that not right?I cannot use
ref
because I don't want to actually introduce any element.But I cannot find a better solution anywhere. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions