@uppy/vue: use markRaw() for uppy class in context provider (#5809)

This commit is contained in:
Prakash 2025-07-07 12:49:21 +05:30 committed by GitHub
parent d183cea86d
commit 8c38fb3fe4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,7 @@ import type { PropType } from 'vue'
import {
defineComponent,
inject,
markRaw,
onBeforeUnmount,
onMounted,
provide,
@ -33,7 +34,7 @@ export const UppyContextProvider = defineComponent({
const progress = ref(0)
const uppyContext = reactive<UppyContext>({
uppy: props.uppy,
uppy: markRaw(props.uppy),
status: 'init',
progress: 0,
})