We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4068e55 commit 6d668b1Copy full SHA for 6d668b1
packages/click-to-react-component/src/getDisplayNameFromReactInstance.js
@@ -47,11 +47,13 @@ export function getDisplayNameForInstance(instance) {
47
return 'SuspenseComponent'
48
49
case 14:
50
- return 'MemoComponent'
51
-
52
- case 15: // SimpleMemoComponent
+ case 15:
53
// Attempt to get name from wrapped component
54
- return elementType.type.name ?? 'MemoComponent'
+ return (
+ elementType.type?.name ??
+ Symbol.keyFor?.(elementType.$$typeof) ??
55
+ 'React.memo'
56
+ )
57
58
case 16: // LazyComponent
59
return 'React.lazy'
0 commit comments