mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +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) {
|
||||
if (NUXT.serverRendered) {
|
||||
if (NUXT.serverRendered && ssrData) {
|
||||
applyAsyncData(Component, ssrData)
|
||||
Component._Ctor = Component
|
||||
}
|
||||
Component._Ctor = Component
|
||||
return Component
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user