File tree 1 file changed +1
-2
lines changed
packages/client/composables
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export function useViewTransition() {
17
17
const toMeta = getSlide ( to . params . no as string ) ?. meta
18
18
const fromNo = fromMeta ?. slide ?. no
19
19
const toNo = toMeta ?. slide ?. no
20
- const transitionType = fromNo != null && toNo != null
20
+ const transitionType = fromNo != null && toNo != null && fromNo !== toNo
21
21
&& ( ( fromNo < toNo ? fromMeta ?. transition : toMeta ?. transition ) ?? configs . transition )
22
22
if ( transitionType !== 'view-transition' ) {
23
23
isViewTransition . value = false
@@ -41,7 +41,6 @@ export function useViewTransition() {
41
41
42
42
// Wait for `TransitionGroup` to become normal `div`
43
43
setTimeout ( ( ) => {
44
- // @ts -expect-error missing types
45
44
document . startViewTransition ( ( ) => {
46
45
changeRoute ( )
47
46
return promise
You can’t perform that action at this time.
0 commit comments