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