mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +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) {
|
setup (nuxtApp) {
|
||||||
nuxtApp.vueApp.mixin({
|
nuxtApp.vueApp.mixin({
|
||||||
beforeCreate () {
|
beforeCreate () {
|
||||||
const { _registeredComponents } = this.$nuxt.ssrContext
|
const { modules } = this.$nuxt.ssrContext
|
||||||
const { __moduleIdentifier } = this.$options
|
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,
|
payload: (ssrError ? { error: ssrError } : {}) as NuxtPayload,
|
||||||
_payloadReducers: {},
|
_payloadReducers: {},
|
||||||
modules: new Set(),
|
modules: new Set(),
|
||||||
set _registeredComponents (value) { this.modules = value },
|
|
||||||
get _registeredComponents () { return this.modules },
|
|
||||||
islandContext,
|
islandContext,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user