From e46ec9ad99db09af9e760c28169b66a507ad0b8b Mon Sep 17 00:00:00 2001 From: Christian Bromann Date: Tue, 4 Feb 2025 15:58:15 -0800 Subject: [PATCH] Revert "fix(runtime): don't include loadModule logic in hydrate runtime (#6145)" This reverts commit 948b63af01498be9a6017b1bd8f67b952de756a5. --- src/runtime/initialize-component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/initialize-component.ts b/src/runtime/initialize-component.ts index db155bd366e..2dae8d4b8aa 100644 --- a/src/runtime/initialize-component.ts +++ b/src/runtime/initialize-component.ts @@ -33,7 +33,7 @@ export const initializeComponent = async ( hostRef.$flags$ |= HOST_FLAGS.hasInitializedComponent; const bundleId = cmpMeta.$lazyBundleId$; - if (BUILD.lazyLoad && bundleId) { + if ((BUILD.lazyLoad || BUILD.hydrateClientSide) && bundleId) { // lazy loaded components // request the component's implementation to be // wired up with the host element