From a04a563f8d25b3397b0c258eff26599a9e3e9579 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 2 May 2017 15:36:22 +0430 Subject: [PATCH] create store only when available --- lib/app/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/app/index.js b/lib/app/index.js index 87fa679d3..d3c2db8b9 100644 --- a/lib/app/index.js +++ b/lib/app/index.js @@ -35,7 +35,9 @@ const defaultTransition = <%= export { NuxtError } export function createApp (ssrContext) { + <% if (store) { %> const store = createStore() + <% } %> const router = createRouter() if (process.browser) {