Skip to content

Commit 03348c8

Browse files
author
Sebastien Chopin
committed
hotfix: applyAsyncData only if data is set
1 parent 8c00e92 commit 03348c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/app/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ async function loadAsyncComponents (to, from, next) {
132132
}
133133

134134
function applySSRData(Component, ssrData) {
135-
if (NUXT.serverRendered) {
135+
if (NUXT.serverRendered && ssrData) {
136136
applyAsyncData(Component, ssrData)
137-
Component._Ctor = Component
138137
}
138+
Component._Ctor = Component
139139
return Component
140140
}
141141

0 commit comments

Comments
 (0)