Skip to content

Commit 55abcc0

Browse files
committed
feat(vue3): exclude directives from setup state
1 parent d983fcc commit 55abcc0

File tree

1 file changed

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

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,10 @@ function processSetupState(instance) {
193193
let result: any
194194

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

200201
if (rawData) {
201202
const info = getSetupStateInfo(rawData)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy