From: daiwei Date: Thu, 19 Jun 2025 07:02:51 +0000 (+0800) Subject: chore: update X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc3f9127390e1a8dccb0ce8a8a0013a78257fad7;p=thirdparty%2Fvuejs%2Fcore.git chore: update --- diff --git a/packages/runtime-vapor/src/component.ts b/packages/runtime-vapor/src/component.ts index 4cc7051afc..beca2bceb0 100644 --- a/packages/runtime-vapor/src/component.ts +++ b/packages/runtime-vapor/src/component.ts @@ -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, ): void { - renderEffect(() => { - isApplyingFallthroughProps = true - setDynamicProps(block as Element, [attrs]) - isApplyingFallthroughProps = false - }) + isApplyingFallthroughProps = true + setDynamicProps(block as Element, [attrs]) + isApplyingFallthroughProps = false } /** diff --git a/packages/runtime-vapor/src/components/Transition.ts b/packages/runtime-vapor/src/components/Transition.ts index 017cb0fd5c..5422c39ba9 100644 --- a/packages/runtime-vapor/src/components/Transition.ts +++ b/packages/runtime-vapor/src/components/Transition.ts @@ -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