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

Properly display memo components in the Profiler #1222

Merged
merged 1 commit into from
Nov 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion backend/attachRendererFiber.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function attachRendererFiber(hook: Hook, rid: string, renderer: ReactRenderer):
break;
case MemoComponent:
case SimpleMemoComponent:
nodeType = 'Special';
nodeType = 'Composite';
if (elementType.displayName) {
name = elementType.displayName;
} else {
Expand Down Expand Up @@ -476,6 +476,8 @@ function attachRendererFiber(hook: Hook, rid: string, renderer: ReactRenderer):
case ClassComponent:
case FunctionalComponent:
case ContextConsumer:
case MemoComponent:
case SimpleMemoComponent:
// For types that execute user code, we check PerformedWork effect.
// We don't reflect bailouts (either referential or sCU) in DevTools.
// eslint-disable-next-line no-bitwise
Expand Down