Skip to content

Commit 650e741

Browse files
committed
feat: make vfm.modals and vfm.openedModals shallowReactive array
1 parent 9d42f5a commit 650e741

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vue-final-modal/src/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { internalVfmSymbol, vfmSymbol } from './injectionSymbols'
44
import type { InternalVfm, Modal, ModalId, UseModalOptionsPrivate, Vfm } from './Modal'
55

66
export function createVfm() {
7-
const modals: ComputedRef<Modal>[] = []
8-
const openedModals: ComputedRef<Modal>[] = []
7+
const modals: ComputedRef<Modal>[] = shallowReactive([])
8+
const openedModals: ComputedRef<Modal>[] = shallowReactive([])
99
const dynamicModals: UseModalOptionsPrivate<{}, {}>[] = shallowReactive([])
1010
const modalsContainers = ref<symbol[]>([])
1111

0 commit comments

Comments
 (0)