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 4ba16b0 commit 4633a85Copy full SHA for 4633a85
packages/react-devtools-shared/src/backend/views/utils.js
@@ -139,7 +139,10 @@ export function getElementDimensions(domElement: HTMLElement): {
139
};
140
}
141
142
-export function extractHOCNames(displayName: string) {
+export function extractHOCNames(displayName: string):{
143
+ baseComponentName: string,
144
+ hocNames: string[],
145
+} {
146
if (!displayName) return {baseComponentName: '', hocNames: []};
147
148
const hocRegex = /([A-Z][a-zA-Z0-9]*?)\((.*)\)/g;
0 commit comments