From: Evan You Date: Sun, 1 Dec 2024 09:25:25 +0000 (+0800) Subject: chore: revert temporarily commented lines X-Git-Tag: v3.6.0-alpha.1~16^2~262 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=516d4ed18074797a4e6db9193c1ddf0796f6c34c;p=thirdparty%2Fvuejs%2Fcore.git chore: revert temporarily commented lines --- diff --git a/packages/runtime-vapor/src/apiCreateComponent.ts b/packages/runtime-vapor/src/apiCreateComponent.ts index 22b1779b2e..029a4d4510 100644 --- a/packages/runtime-vapor/src/apiCreateComponent.ts +++ b/packages/runtime-vapor/src/apiCreateComponent.ts @@ -41,7 +41,7 @@ export function createComponent( setupComponent(instance) // register sub-component with current component for lifecycle management - // current.comps.add(instance) + current.comps.add(instance) return instance } diff --git a/packages/runtime-vapor/src/componentLifecycle.ts b/packages/runtime-vapor/src/componentLifecycle.ts index 441484f2aa..4c2918c3eb 100644 --- a/packages/runtime-vapor/src/componentLifecycle.ts +++ b/packages/runtime-vapor/src/componentLifecycle.ts @@ -25,6 +25,6 @@ export function invokeLifecycle( } function invokeSub() { - // instance.comps.forEach(comp => invokeLifecycle(comp, lifecycle, cb, post)) + instance.comps.forEach(comp => invokeLifecycle(comp, lifecycle, cb, post)) } }