docs: fix code example

This commit is contained in:
Guillaume Chau
2018-10-09 19:08:58 +02:00
committed by Guillaume Chau
parent 60fdb5a165
commit 85a5fb477a
+2 -2
View File
@@ -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.