Skip to content

Commit cf17e0e

Browse files
committed
chore: remove watch
1 parent ac1eead commit cf17e0e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/vue-final-modal/src/components/ModalsContainer.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { computed, onBeforeUnmount, watch } from 'vue'
2+
import { computed, onBeforeUnmount } from 'vue'
33
import { useInternalVfm, useVfm } from '~/useApi'
44
import { isString } from '~/utils'
55
@@ -13,11 +13,6 @@ modalsContainers.value.push(uid)
1313
onBeforeUnmount(() => {
1414
modalsContainers.value = modalsContainers.value.filter(i => i !== uid)
1515
})
16-
17-
watch(() => modalsContainers.value.length, (val) => {
18-
if (shouldMount.value && val > 1)
19-
console.warn('[Vue Final Modal] Warning: <ModalsContainer> should be mount only once in your Vue App.')
20-
})
2116
</script>
2217

2318
<template>

0 commit comments

Comments
 (0)