Use exposeProxy instead of proxy for public component methods? #17346
Unanswered
Dtsiantaris
asked this question in
Ideas / Proposals
Replies: 1 comment 2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maybe I am wrong here not knowing what could actually break here if
exposeProxy
was used instead ofproxy
.The public methods are now being exposed like this(QBtn for reference):
But shouldn't it be this:
I might have misunderstood something but wouldn't this way be the equivalent of using
defineExpose
?This would actually make public methods accessible through
ref.value?.$.exposeProxy
isolated, meaning without props or other things that are not related to public methods.And
ref.value?.publicMethod()
would still be available.Beta Was this translation helpful? Give feedback.
All reactions