-
-
Notifications
You must be signed in to change notification settings - Fork 226
feat(api): introduce inspectSetupState #450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for vue-devtools-docs canceled.
|
I’m not sure about it. I don't think most users will use it manually to inspect it. If we can't handle it automatically in devtools at the moment, I think the better solution is to expose some possibilities in vue core.
But it might work as a helper to help some developers who want this feature, I'll check it out later!
alexzhang1030
commented
Jun 16, 2024
I’m sure about it. I don't think most users will use it manually to inspect it. If we can't handle it automatically in devtools at the moment, I think the better solution is to expose some possibilities in vue core. But it might work as a helper to help some developers who want this feature, I'll check it out later!
If the setup returns a render function, which will be a closure, it becomes challenging for vue/core to register the setup state without static analysis. An existing PR, #5383, aims to add a debug API. However, I believe it would be more appropriate to integrate this function into vue-devtools.
@vue/devtools-core
pnpm add https://pkg.pr.new/@vue/devtools-core@450
@vue/devtools
pnpm add https://pkg.pr.new/@vue/devtools@450
@vue/devtools-api
pnpm add https://pkg.pr.new/@vue/devtools-api@450
@vue/devtools-kit
pnpm add https://pkg.pr.new/@vue/devtools-kit@450
vite-plugin-vue-devtools
pnpm add https://pkg.pr.new/vite-plugin-vue-devtools@450
commit: 0b6464b
Uh oh!
There was an error while loading. Please reload this page.
closes #376
This is very useful when using
defineComponentwith setup returning the render function.