feat(devtools): expose setupState target object
This commit is contained in:
parent
6eb7fd8333
commit
31b99a9139
@ -258,6 +258,11 @@ export interface ComponentInternalInstance {
|
|||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
setupState: Data
|
setupState: Data
|
||||||
|
/**
|
||||||
|
* devtools access to additional info
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
devtoolsRawSetupState?: any
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
@ -549,6 +554,9 @@ export function handleSetupResult(
|
|||||||
}
|
}
|
||||||
// setup returned bindings.
|
// setup returned bindings.
|
||||||
// assuming a render function compiled from template is present.
|
// assuming a render function compiled from template is present.
|
||||||
|
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
|
||||||
|
instance.devtoolsRawSetupState = setupResult
|
||||||
|
}
|
||||||
instance.setupState = proxyRefs(setupResult)
|
instance.setupState = proxyRefs(setupResult)
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
exposeSetupStateOnRenderContext(instance)
|
exposeSetupStateOnRenderContext(instance)
|
||||||
|
Loading…
Reference in New Issue
Block a user