We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2bb772 commit 492299aCopy full SHA for 492299a
src/server-entry.js
@@ -1,9 +1,10 @@
1
import { app, router, store } from './app'
2
3
export default context => {
4
- // When using vue-router, it will automatically pick up the url from the
5
- // context. We just need to resolve the store state.
6
- var s = Date.now()
+ // set router's location
+ router.push(context.url)
+ // call prefetch hooks on components matched by the route
7
+ const s = Date.now()
8
return Promise.all(router.getMatchedComponents().map(component => {
9
if (component.prefetch) {
10
return component.prefetch(store)
0 commit comments