(appRecord: AppRecord, instanceId: string, _ctx: BackendContext)
| 132 | } |
| 133 | |
| 134 | export function getComponentInstance(appRecord: AppRecord, instanceId: string, _ctx: BackendContext) { |
| 135 | if (instanceId === '_root') { |
| 136 | instanceId = `${appRecord.id}:root` |
| 137 | } |
| 138 | const instance = appRecord.instanceMap.get(instanceId) |
| 139 | if (!instance) { |
| 140 | appRecord.missingInstanceQueue.add(instanceId) |
| 141 | if (SharedData.debugInfo) { |
| 142 | console.warn(`Instance uid=${instanceId} not found`) |
| 143 | } |
| 144 | } |
| 145 | return instance |
| 146 | } |
| 147 | |
| 148 | export async function refreshComponentTreeSearch(ctx: BackendContext) { |
| 149 | if (!ctx.currentAppRecord.componentFilter) { |
no test coverage detected