There was an error while loading. Please reload this page.
1 parent d87f6c6 commit b8ea9c3Copy full SHA for b8ea9c3
src/entry-client.js
@@ -40,7 +40,10 @@ router.onReady(() => {
40
router.beforeResolve((to, from, next) => {
41
const matched = router.getMatchedComponents(to)
42
const prevMatched = router.getMatchedComponents(from)
43
- const activated = matched.filter(c => prevMatched.indexOf(c) < 0)
+ let diffed = false
44
+ const activated = matched.filter((c, i) => {
45
+ return diffed || (diffed = (prevMatched[i] !== c))
46
+ })
47
if (!activated.length) {
48
return next()
49
}
0 commit comments