Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 46e0873

Browse files
authored
Properly display memo components in the Profiler (#1222)
1 parent 536a54a commit 46e0873

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/attachRendererFiber.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ function attachRendererFiber(hook: Hook, rid: string, renderer: ReactRenderer):
303303
break;
304304
case MemoComponent:
305305
case SimpleMemoComponent:
306-
nodeType = 'Special';
306+
nodeType = 'Composite';
307307
if (elementType.displayName) {
308308
name = elementType.displayName;
309309
} else {
@@ -476,6 +476,8 @@ function attachRendererFiber(hook: Hook, rid: string, renderer: ReactRenderer):
476476
case ClassComponent:
477477
case FunctionalComponent:
478478
case ContextConsumer:
479+
case MemoComponent:
480+
case SimpleMemoComponent:
479481
// For types that execute user code, we check PerformedWork effect.
480482
// We don't reflect bailouts (either referential or sCU) in DevTools.
481483
// eslint-disable-next-line no-bitwise

0 commit comments

Comments
 (0)