From 9c990c21f0b3d47769ea9a5c20b0ec906e23d1fb Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 12 Jul 2018 14:10:10 +0100 Subject: [PATCH] Temporarily remove Profiler ID from messages --- .../__snapshots__/ReactIncrementalPerf-test.internal.js.snap | 2 +- packages/shared/getComponentName.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-reconciler/src/__tests__/__snapshots__/ReactIncrementalPerf-test.internal.js.snap b/packages/react-reconciler/src/__tests__/__snapshots__/ReactIncrementalPerf-test.internal.js.snap index a6b1b1caf15be..f6c7cb67b627b 100644 --- a/packages/react-reconciler/src/__tests__/__snapshots__/ReactIncrementalPerf-test.internal.js.snap +++ b/packages/react-reconciler/src/__tests__/__snapshots__/ReactIncrementalPerf-test.internal.js.snap @@ -96,7 +96,7 @@ exports[`ReactDebugFiberPerf does not include AsyncMode, StrictMode, or Profiler // Mount ⚛ (React Tree Reconciliation: Completed Root) - ⚛ Profiler(test) [mount] + ⚛ Profiler [mount] ⚛ Parent [mount] ⚛ Child [mount] diff --git a/packages/shared/getComponentName.js b/packages/shared/getComponentName.js index a3a3b10f8c05f..2cf801e9b0712 100644 --- a/packages/shared/getComponentName.js +++ b/packages/shared/getComponentName.js @@ -37,7 +37,7 @@ function getComponentName(fiber: Fiber): string | null { case REACT_PORTAL_TYPE: return 'Portal'; case REACT_PROFILER_TYPE: - return `Profiler(${fiber.pendingProps.id})`; + return `Profiler`; case REACT_STRICT_MODE_TYPE: return 'StrictMode'; case REACT_PLACEHOLDER_TYPE: