Skip to content

Commit

Permalink
feat(vue3): exclude directives from setup state
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 7, 2024
1 parent d983fcc commit 55abcc0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/app-backend-vue3/src/components/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,10 @@ function processSetupState(instance) {
let result: any

let isOther = typeof value === 'function'
|| typeof value?.render === 'function'
|| typeof value?.__asyncLoader === 'function'
|| (typeof value === 'object' && value && ('setup' in value || 'props' in value))
|| typeof value?.render === 'function' // Components
|| typeof value?.__asyncLoader === 'function' // Components
|| (typeof value === 'object' && value && ('setup' in value || 'props' in value)) // Components
|| /^v[A-Z]/.test(key) // Directives

if (rawData) {
const info = getSetupStateInfo(rawData)
Expand Down

0 comments on commit 55abcc0

Please sign in to comment.