Why do template refs have different behavior depending on applied element? #10096
Unanswered
senyaak
asked this question in
Help/Questions
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, I make some nasty things with tanstack :) For one case I need to get the
ref
asElement
but since the element I use it on is a component - I always get the component instance. To get theElement
ref
I have to expose it from the component.And this implementation seems to be very weird to me. Why do the both component
ref
and elementref
are handled like the same. Shoudn't there beref
for components andrefElm
forElement
? Were there already a discussion about it? I would like to understand why it is implemented like it is :)Thank you for reading :)
Beta Was this translation helpful? Give feedback.
All reactions