Skip to content

Commit 8fb0908

Browse files
committed
fix: use shallowRef instead of ref
1 parent 9782f56 commit 8fb0908

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { computed, onBeforeUnmount, ref, watch } from 'vue'
2+
import { computed, onBeforeUnmount, shallowRef, watch } from 'vue'
33
import { isString } from '@vueuse/core'
44
import type { Ref } from 'vue'
55
import type { UseModalOptionsPrivate } from '../Modal'
@@ -11,7 +11,7 @@ const { resolvedClosed, resolvedOpened } = useInternalVfm()
1111
const uid = Symbol('ModalsContainer')
1212
const shouldMount = computed(() => uid === modalsContainers.value[0])
1313
14-
const openedDynamicModals: Ref<UseModalOptionsPrivate[]> = ref([])
14+
const openedDynamicModals: Ref<UseModalOptionsPrivate[]> = shallowRef([])
1515
1616
function syncOpenDynamicModals() {
1717
openedDynamicModals.value = dynamicModals.filter(modal => modal.modelValue)

0 commit comments

Comments
 (0)