Skip to content

Commit

Permalink
fix: use shallowRef instead of ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini-ghost committed Jan 17, 2023
1 parent 9782f56 commit 8fb0908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vue-final-modal/src/components/ModalsContainer.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { computed, onBeforeUnmount, ref, watch } from 'vue'
import { computed, onBeforeUnmount, shallowRef, watch } from 'vue'
import { isString } from '@vueuse/core'
import type { Ref } from 'vue'
import type { UseModalOptionsPrivate } from '../Modal'
Expand All @@ -11,7 +11,7 @@ const { resolvedClosed, resolvedOpened } = useInternalVfm()
const uid = Symbol('ModalsContainer')
const shouldMount = computed(() => uid === modalsContainers.value[0])
const openedDynamicModals: Ref<UseModalOptionsPrivate[]> = ref([])
const openedDynamicModals: Ref<UseModalOptionsPrivate[]> = shallowRef([])
function syncOpenDynamicModals() {
openedDynamicModals.value = dynamicModals.filter(modal => modal.modelValue)
Expand Down

0 comments on commit 8fb0908

Please sign in to comment.