From 812410f7567670c345295a9d7d9b27b3a5f809ef Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Tue, 18 Oct 2022 15:17:14 +0200 Subject: [PATCH] feat(vue3): inspector: skip composables (key starts with 'use') --- packages/app-backend-vue3/src/components/data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-backend-vue3/src/components/data.ts b/packages/app-backend-vue3/src/components/data.ts index cc585ab8f..3a746cb86 100644 --- a/packages/app-backend-vue3/src/components/data.ts +++ b/packages/app-backend-vue3/src/components/data.ts @@ -177,7 +177,7 @@ function processState (instance) { function processSetupState (instance) { const raw = instance.devtoolsRawSetupState || {} return Object.keys(instance.setupState) - .filter(key => !vueBuiltins.includes(key)) + .filter(key => !vueBuiltins.includes(key) && !key.startsWith('use')) .map(key => { const value = returnError(() => toRaw(instance.setupState[key]))