import type { ComponentTypeEmits } from './apiSetupHelpers'
import { getModelModifiers } from './helpers/useModel'
import type { ComponentPublicInstance } from './componentPublicInstance'
+import { pauseTracking, resetTracking } from '@vue/reactivity'
export type ObjectEmitsOptions = Record<
string,
}
if (handler) {
+ pauseTracking()
callWithAsyncErrorHandling(
handler,
instance,
ErrorCodes.COMPONENT_EVENT_HANDLER,
args,
)
+ resetTracking()
}
const onceHandler = props[handlerName + `Once`]
return
}
instance.emitted[handlerName] = true
+ pauseTracking()
callWithAsyncErrorHandling(
onceHandler,
instance,
ErrorCodes.COMPONENT_EVENT_HANDLER,
args,
)
+ resetTracking()
}
if (__COMPAT__) {