Skip to content

Commit b0cda9f

Browse files
committed
fix: get rid of side effect
1 parent baa30cc commit b0cda9f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/vue-final-modal/src/components/CoreModal/useTransition.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { BaseTransitionProps, ComputedRef, Ref, TransitionProps } from 'vue'
2-
import { computed, nextTick, onMounted, ref, watch } from 'vue'
2+
import { computed, nextTick, ref, watch } from 'vue'
33
import type CoreModal from './CoreModal.vue'
44

55
export enum TransitionState {
@@ -95,13 +95,6 @@ export function useTransition(
9595
}
9696
})
9797

98-
onMounted(() => {
99-
if (visible.value) {
100-
onEntering()
101-
onEnter()
102-
}
103-
})
104-
10598
async function enterTransition() {
10699
visible.value = true
107100
await nextTick()

0 commit comments

Comments
 (0)