(element: HTMLElement)
| 449 | } |
| 450 | |
| 451 | function getFiberFromElement(element: HTMLElement): ReactFiber | null { |
| 452 | const key = getReactFiberKey(element); |
| 453 | if (!key) return null; |
| 454 | return (element as unknown as Record<string, unknown>)[ |
| 455 | key |
| 456 | ] as ReactFiber | null; |
| 457 | } |
| 458 | |
| 459 | function getComponentNameFromType(type: ComponentType | null): string | null { |
| 460 | if (!type) return null; |
no test coverage detected
searching dependent graphs…