(target, key: string)
| 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(), |
nothing calls this directly
no test coverage detected