Skip to content

Commit 21fa91e

Browse files
authoredJan 20, 2023
fix: Better check if data name starts with use (fix: #1971) (#1997)
1 parent c599720 commit 21fa91e

File tree

1 file changed

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

1 file changed

+1
-1
lines changed
 

Diff for: ‎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) && !key.startsWith('use'))
180+
.filter(key => !vueBuiltins.includes(key) && key.split(/(?=[A-Z])/)[0] !== 'use')
181181
.map(key => {
182182
const value = returnError(() => toRaw(instance.setupState[key]))
183183

0 commit comments

Comments
 (0)