This commit is contained in:
Sebastien Chopin 2017-09-22 16:05:59 +02:00
parent 604dfc95de
commit 9e4f864e4d

View File

@ -562,10 +562,12 @@ async function mountApp(__app) {
return
}
render.call(_app, router.currentRoute, router.currentRoute, path => {
// First render on client-side
render.call(_app, router.currentRoute, router.currentRoute, (path) => {
// If not redirected
if (!path) {
normalizeComponents(router.currentRoute, router.currentRoute)
fixPrepatch.call(_app, router.currentRoute, router.currentRoute)
// Dont call fixPrepatch.call(_app, router.currentRoute, router.currentRoute) since it's first render
mountApp()
return
}