mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-19 01:24:18 +00:00
@uppy/vue: use markRaw() for uppy class in context provider (#5809)
This commit is contained in:
parent
d183cea86d
commit
8c38fb3fe4
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue