]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update
authordaiwei <daiwei521@126.com>
Thu, 19 Jun 2025 07:02:51 +0000 (15:02 +0800)
committerdaiwei <daiwei521@126.com>
Thu, 19 Jun 2025 07:02:51 +0000 (15:02 +0800)
packages/runtime-vapor/src/component.ts
packages/runtime-vapor/src/components/Transition.ts

index 4cc7051afc1b63c80e4e56bd6db81db149246332..beca2bceb0ed51c82eacfdc7d5b69969fb3d7126 100644 (file)
@@ -270,7 +270,7 @@ export function createComponent(
   ) {
     const el = getRootElement(instance)
     if (el) {
-      applyFallthroughProps(el, instance.attrs)
+      renderEffect(() => applyFallthroughProps(el, instance.attrs))
     }
   }
 
@@ -297,11 +297,9 @@ export function applyFallthroughProps(
   block: Block,
   attrs: Record<string, any>,
 ): void {
-  renderEffect(() => {
-    isApplyingFallthroughProps = true
-    setDynamicProps(block as Element, [attrs])
-    isApplyingFallthroughProps = false
-  })
+  isApplyingFallthroughProps = true
+  setDynamicProps(block as Element, [attrs])
+  isApplyingFallthroughProps = false
 }
 
 /**
index 017cb0fd5c880d37523a1657bfc84ec6293c1409..5422c39ba90f6d7c67f5aca760078a763d234e9d 100644 (file)
@@ -194,7 +194,7 @@ export function applyTransitionHooks(
   if (fallthroughAttrs && instance.hasFallthrough) {
     // mark single root
     ;(child as any).$root = true
-    applyFallthroughProps(child, instance.attrs)
+    renderEffect(() => applyFallthroughProps(child, instance.attrs))
   }
 
   return resolvedHooks