File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -1302,14 +1302,12 @@ export function createRouter(
13021302 return
13031303 }
13041304
1305- this . isReady ( ) . then ( ( ) => {
1306- ; [
1307- beforeResolveTransitionGuard ,
1308- afterEachTransitionGuard ,
1309- onErrorTransitionGuard ,
1310- popStateListener ,
1311- ] = enableViewTransition ( this , options )
1312- } )
1305+ ; [
1306+ beforeResolveTransitionGuard ,
1307+ afterEachTransitionGuard ,
1308+ onErrorTransitionGuard ,
1309+ popStateListener ,
1310+ ] = enableViewTransition ( this , options )
13131311 } ,
13141312
13151313 install ( app : App ) {
Original file line number Diff line number Diff line change 11import { RouteLocationNormalized } from '../typed-routes'
2- import { START_LOCATION } from '../index '
2+ import { START_LOCATION_NORMALIZED } from '../location '
33
44// from Nuxt
55const ROUTE_KEY_PARENTHESES_RE = / ( : \w + ) \( [ ^ ) ] + \) / g
@@ -24,7 +24,11 @@ export function isChangingPage(
2424 to : RouteLocationNormalized ,
2525 from : RouteLocationNormalized
2626) {
27- if ( to === from || from === START_LOCATION ) {
27+ if (
28+ to === START_LOCATION_NORMALIZED ||
29+ to === from ||
30+ from === START_LOCATION_NORMALIZED
31+ ) {
2832 return false
2933 }
3034
You can’t perform that action at this time.
0 commit comments