( outerType: mixed, innerType: any, wrapperName: string, )
| 34 | |
| 35 | class="cm">// Keep in sync with react-reconciler/getComponentNameFromFiber |
| 36 | function getWrappedName( |
| 37 | outerType: mixed, |
| 38 | innerType: any, |
| 39 | wrapperName: string, |
| 40 | ): string { |
| 41 | const displayName = (outerType: any).displayName; |
| 42 | if (displayName) { |
| 43 | return displayName; |
| 44 | } |
| 45 | const functionName = innerType.displayName || innerType.name || class="st">''; |
| 46 | return functionName !== class="st">'' ? `${wrapperName}(${functionName})` : wrapperName; |
| 47 | } |
| 48 | |
| 49 | class="cm">// Keep in sync with react-reconciler/getComponentNameFromFiber |
| 50 | function getContextName(type: ReactContext<any>) { |
no outgoing calls
no test coverage detected