( element: Element, inspectedElement: InspectedElementFrontend, )
| 56 | } |
| 57 | |
| 58 | function createCacheSeed( |
| 59 | element: Element, |
| 60 | inspectedElement: InspectedElementFrontend, |
| 61 | ): [CacheSeedKey, InspectedElementMap] { |
| 62 | const thenable: FulfilledThenable<InspectedElementFrontend> = { |
| 63 | then(callback: (value: any) => mixed, reject: (error: mixed) => mixed) { |
| 64 | callback(thenable.value); |
| 65 | }, |
| 66 | status: 'fulfilled', |
| 67 | value: inspectedElement, |
| 68 | }; |
| 69 | const map = createMap(); |
| 70 | map.set(element, thenable); |
| 71 | return [createMap, map]; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Fetches element props and state from the backend for inspection. |
no test coverage detected