We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
beforeResolve
1 parent 9367a97 commit ce59ba7Copy full SHA for ce59ba7
packages/router/src/navigation-api/index.ts
@@ -871,6 +871,7 @@ export function createNavigationApiRouter(
871
window.matchMedia('(prefers-reduced-motion: reduce)').matches) ||
872
!isChangingPage(to, from)
873
) {
874
+ next(true)
875
return
876
}
877
@@ -887,7 +888,8 @@ export function createNavigationApiRouter(
887
888
.catch(() => options.onAborted?.(transition))
889
.finally(resetTransitionState)
890
- return promise
891
+ // promise will be resolved
892
893
894
)
895
0 commit comments