MCPcopy
hub / github.com/vuejs/devtools-v6 / get

Function get

packages/app-backend-core/src/app.ts:77–94  ·  view source on GitHub ↗
(target, key: string)

Source from the content-addressed store, hash-verified

75 lastInspectedComponentId: null,
76 instanceMap: new Proxy(instanceMapRaw, {
77 get(target, key: string) {
78 if (key === 'set') {
79 return (instanceId: string, instance: any) => {
80 target.set(instanceId, instance)
81 // The component was requested by the frontend before it was registered
82 if (record.missingInstanceQueue.has(instanceId)) {
83 record.missingInstanceQueue.delete(instanceId)
84 if (ctx.currentAppRecord === record) {
85 sendComponentTreeData(record, instanceId, record.componentFilter, null, false, ctx)
86 if (record.lastInspectedComponentId === instanceId) {
87 sendSelectedComponentData(record, instanceId, ctx)
88 }
89 }
90 }
91 }
92 }
93 return target[key].bind(target)
94 },
95 }),
96 rootInstance,
97 perfGroupIds: new Map(),

Callers

nothing calls this directly

Calls 4

sendComponentTreeDataFunction · 0.85
setMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected