mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-21 21:25:11 +00:00
refactor(nuxt): remove _registeredComponents
from ssrContext (#27819)
This commit is contained in:
parent
79193561b9
commit
0be6929523
@ -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)
|
||||
},
|
||||
})
|
||||
},
|
||||
|
@ -311,8 +311,6 @@ export default defineRenderHandler(async (event): Promise<Partial<RenderResponse
|
||||
payload: (ssrError ? { error: ssrError } : {}) as NuxtPayload,
|
||||
_payloadReducers: {},
|
||||
modules: new Set(),
|
||||
set _registeredComponents (value) { this.modules = value },
|
||||
get _registeredComponents () { return this.modules },
|
||||
islandContext,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user