From 85a5fb477a7ca01cc4c4a4a93c0d64aa41c4eb48 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Tue, 9 Oct 2018 19:08:58 +0200 Subject: [PATCH] docs: fix code example --- docs/guide/ssr.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/ssr.md b/docs/guide/ssr.md index dbbf012..83bc8e1 100644 --- a/docs/guide/ssr.md +++ b/docs/guide/ssr.md @@ -172,13 +172,13 @@ export default () => new Promise((resolve, reject) => { store, route: router.currentRoute, }) - }) + })) // Apollo prefetch // This will prefetch all the Apollo queries in the whole app .then(() => ApolloSSR.prefetchAll(apolloProvider, [App, ...matchedComponents], { store, route: router.currentRoute, - }) + })) .then(() => { // Inject the Vuex state and the Apollo cache on the page. // This will prevent unnecessary queries.