diff --git a/lib/app/client.js b/lib/app/client.js index 4c43a21682..b4087f8129 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -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 }