Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aa717ab

Browse files
committedJul 16, 2022
Avoid potentially wasting work by inlining functionName
1 parent db8187d commit aa717ab

File tree

1 file changed

+1
-2
lines changed
  • packages/react-devtools-shared/src

1 file changed

+1
-2
lines changed
 

‎packages/react-devtools-shared/src/utils.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ export function getWrappedDisplayName(
108108
wrapperName: string,
109109
fallbackName?: string,
110110
): string {
111-
const functionName = getDisplayName(innerType, fallbackName);
112-
return (outerType: any).displayName || `${wrapperName}(${functionName})`;
111+
return (outerType: any).displayName || `${wrapperName}(${getDisplayName(innerType, fallbackName)})`;
113112
}
114113
115114
export function getDisplayName(

0 commit comments

Comments
 (0)
Please sign in to comment.