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: