From 03348c85cd4a9bcdd65e5ea25bc184ca81ec85f0 Mon Sep 17 00:00:00 2001 From: Sebastien Chopin Date: Thu, 7 Sep 2017 14:44:13 +0200 Subject: [PATCH] hotfix: applyAsyncData only if data is set --- lib/app/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/app/client.js b/lib/app/client.js index 3125858d60..3fd0f1e532 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -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 }