exposeRefs - a way for access of composition API's ref values #10777
Unanswered
cyfung1031
asked this question in
Ideas / Proposals
Replies: 1 comment
-
Good idea, though what needs to be exposed should be discussed first and be agreed upon, then through specific feat request imho. |
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
-
In the composition API designs, there are many ref values are stored inside the ui components.
Example:
You can just set the hidden state via some exposed public function but you cannot know the state value.
Those states are very important if we want to customize the behavior of the UI.
For example,
Why don't just give the option to programmers to see this value?
I propose to use a boolean
exposeRefs
defined in config.js so it can allow programmers to access these state properties.app.use(Quasar, { config: { exposeRefs: true } })
The actual implementation can be found in the PR #10761. It is fully backwards compatible and does not affecting any existing usage.
Beta Was this translation helpful? Give feedback.
All reactions