Skip to content

Commit f034cd9

Browse files
committed
fix: use finally instead of then
1 parent 813e9a9 commit f034cd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/router-core/src/router.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,21 +2315,21 @@ export class RouterCore<
23152315
transition,
23162316
...locationChangeInfo,
23172317
})
2318-
transition.ready.then(() => {
2318+
transition.ready.finally(() => {
23192319
this.emit({
23202320
type: 'onViewTransitionReady',
23212321
transition,
23222322
...locationChangeInfo,
23232323
})
23242324
})
2325-
transition.updateCallbackDone.then(() => {
2325+
transition.updateCallbackDone.finally(() => {
23262326
this.emit({
23272327
type: 'onViewTransitionUpdateCallbackDone',
23282328
transition,
23292329
...locationChangeInfo,
23302330
})
23312331
})
2332-
transition.finished.then(() => {
2332+
transition.finished.finally(() => {
23332333
this.emit({
23342334
type: 'onViewTransitionFinish',
23352335
transition,

0 commit comments

Comments
 (0)