Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 812410f

Browse files
committed
feat(vue3): inspector: skip composables (key starts with 'use')
1 parent f85bd25 commit 812410f

File tree

1 file changed

+1
-1
lines changed
  • packages/app-backend-vue3/src/components

1 file changed

+1
-1
lines changed

packages/app-backend-vue3/src/components/data.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function processState (instance) {
177177
function processSetupState (instance) {
178178
const raw = instance.devtoolsRawSetupState || {}
179179
return Object.keys(instance.setupState)
180-
.filter(key => !vueBuiltins.includes(key))
180+
.filter(key => !vueBuiltins.includes(key) && !key.startsWith('use'))
181181
.map(key => {
182182
const value = returnError(() => toRaw(instance.setupState[key]))
183183

0 commit comments

Comments
 (0)