From a3476157ec455b86b8c5d39fd0628a01c6f11c25 Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Wed, 3 Jul 2024 22:13:23 +0200 Subject: [PATCH] refactor(nuxt): remove `_registeredComponents` from ssrContext (#27819) --- packages/nuxt/src/app/plugins/preload.server.ts | 4 ++-- packages/nuxt/src/core/runtime/nitro/renderer.ts | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/nuxt/src/app/plugins/preload.server.ts b/packages/nuxt/src/app/plugins/preload.server.ts index 18c8931f08..44f17795dc 100644 --- a/packages/nuxt/src/app/plugins/preload.server.ts +++ b/packages/nuxt/src/app/plugins/preload.server.ts @@ -5,9 +5,9 @@ export default defineNuxtPlugin({ setup (nuxtApp) { nuxtApp.vueApp.mixin({ beforeCreate () { - const { _registeredComponents } = this.$nuxt.ssrContext + const { modules } = this.$nuxt.ssrContext const { __moduleIdentifier } = this.$options - _registeredComponents.add(__moduleIdentifier) + modules.add(__moduleIdentifier) }, }) }, diff --git a/packages/nuxt/src/core/runtime/nitro/renderer.ts b/packages/nuxt/src/core/runtime/nitro/renderer.ts index a36737f5ae..3d748a5c58 100644 --- a/packages/nuxt/src/core/runtime/nitro/renderer.ts +++ b/packages/nuxt/src/core/runtime/nitro/renderer.ts @@ -312,8 +312,6 @@ export default defineRenderHandler(async (event): Promise