mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 22:51:02 +00:00
hotfix: applyAsyncData only if data is set
This commit is contained in:
parent
8c00e92409
commit
03348c85cd
@ -132,10 +132,10 @@ async function loadAsyncComponents (to, from, next) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function applySSRData(Component, ssrData) {
|
function applySSRData(Component, ssrData) {
|
||||||
if (NUXT.serverRendered) {
|
if (NUXT.serverRendered && ssrData) {
|
||||||
applyAsyncData(Component, ssrData)
|
applyAsyncData(Component, ssrData)
|
||||||
Component._Ctor = Component
|
|
||||||
}
|
}
|
||||||
|
Component._Ctor = Component
|
||||||
return Component
|
return Component
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user