Skip to content

Commit

Permalink
fix: Better check if data name starts with use (fix: #1971) (#1997)
Browse files Browse the repository at this point in the history
  • Loading branch information
txreplay authored Jan 20, 2023
1 parent c599720 commit 21fa91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-backend-vue3/src/components/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function processState (instance) {
function processSetupState (instance) {
const raw = instance.devtoolsRawSetupState || {}
return Object.keys(instance.setupState)
.filter(key => !vueBuiltins.includes(key) && !key.startsWith('use'))
.filter(key => !vueBuiltins.includes(key) && key.split(/(?=[A-Z])/)[0] !== 'use')
.map(key => {
const value = returnError(() => toRaw(instance.setupState[key]))

Expand Down

0 comments on commit 21fa91e

Please sign in to comment.