MCPcopy
hub / github.com/vuejs/composition-api / withCurrentInstanceTrackingDisabled

Function withCurrentInstanceTrackingDisabled

src/runtimeContext.ts:89–97  ·  view source on GitHub ↗
(fn: () => void)

Source from the content-addressed store, hash-verified

87 * @internal
88 **/
89export function withCurrentInstanceTrackingDisabled(fn: () => void) {
90 const prev = currentInstanceTracking
91 currentInstanceTracking = false
92 try {
93 fn()
94 } finally {
95 currentInstanceTracking = prev
96 }
97}
98
99export function setCurrentVue2Instance(vm: ComponentInstance | null) {
100 if (!currentInstanceTracking) return

Callers 1

constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…