Use exposeProxy instead of proxy for public component methods? #17346
Unanswered
Dtsiantaris
asked this question in
Ideas / Proposals
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 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.
-
Maybe I am wrong here not knowing what could actually break here if
exposeProxywas 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?.$.exposeProxyisolated, 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