(
id: number,
path: Array<string | number>,
count: number,
)
| 7009 | } |
| 7010 | |
| 7011 | function storeAsGlobal( |
| 7012 | id: number, |
| 7013 | path: Array<string | number>, |
| 7014 | count: number, |
| 7015 | ): void { |
| 7016 | if (isMostRecentlyInspectedElement(id)) { |
| 7017 | const value = getInObject( |
| 7018 | ((mostRecentlyInspectedElement: any): InspectedElement), |
| 7019 | path, |
| 7020 | ); |
| 7021 | const key = `$reactTemp${count}`; |
| 7022 | |
| 7023 | window[key] = value; |
| 7024 | |
| 7025 | console.log(key); |
| 7026 | console.log(value); |
| 7027 | } |
| 7028 | } |
| 7029 | |
| 7030 | function getSerializedElementValueByPath( |
| 7031 | id: number, |
no test coverage detected