How can i properly type function template ref #7438
Unanswered
i0boy
asked this question in
Help/Questions
Replies: 1 comment
-
The type definition of ref is as follows: core/packages/runtime-core/src/vnode.ts Lines 72 to 78 in c6e5bda You can maybe change it to this: <div :ref="setRef as any"> For more info, please see here. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone
I just wanna use template ref setter function (from renderless component) at my children compoent's
:ref
but i found
:ref
props acceptVNodeRef | undefined
so typescript yells mehow can i fix this?
Beta Was this translation helpful? Give feedback.
All reactions