Skip to content

Commit b9b8371

Browse files
committed
Infer name from stack if it's the generic "lazy" name
1 parent a12cc9a commit b9b8371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-devtools-shared/src/devtools/views/useInferredName.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function useInferredName(
1616
const fetchFileWithCaching = useContext(FetchFileWithCachingContext);
1717
const name = asyncInfo.awaited.name;
1818
let inferNameFromStack = null;
19-
if (!name || name === 'Promise') {
19+
if (!name || name === 'Promise' || name === 'lazy') {
2020
// If all we have is a generic name, we can try to infer a better name from
2121
// the stack. We only do this if the stack has more than one frame since
2222
// otherwise it's likely to just be the name of the component which isn't better.

0 commit comments

Comments
 (0)