MCPcopy
hub / github.com/vuejs/core / unregisterHMR

Function unregisterHMR

packages/runtime-core/src/hmr.ts:70–72  ·  view source on GitHub ↗
(instance: ComponentInternalInstance)

Source from the content-addressed store, hash-verified

68}
69
70export function unregisterHMR(instance: ComponentInternalInstance): void {
71 map.get(instance.type.__hmrId!)!.instances.delete(instance)
72}
73
74function createRecord(id: string, initialDef: HMRComponent): boolean {
75 if (map.has(id)) {

Callers 1

unmountComponentFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected