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 a12cc9a commit b9b8371Copy full SHA for b9b8371
packages/react-devtools-shared/src/devtools/views/useInferredName.js
@@ -16,7 +16,7 @@ export default function useInferredName(
16
const fetchFileWithCaching = useContext(FetchFileWithCachingContext);
17
const name = asyncInfo.awaited.name;
18
let inferNameFromStack = null;
19
- if (!name || name === 'Promise') {
+ if (!name || name === 'Promise' || name === 'lazy') {
20
// If all we have is a generic name, we can try to infer a better name from
21
// the stack. We only do this if the stack has more than one frame since
22
// otherwise it's likely to just be the name of the component which isn't better.
0 commit comments