From 4b75d07cb6ba029c0c8fb56b8b6b1cba2763cae0 Mon Sep 17 00:00:00 2001 From: Kevin Barabash Date: Thu, 4 Jul 2024 17:50:24 -0400 Subject: [PATCH] add a comment about false positives from 'highlight renders' feature in the React DevTools --- src/react-render-perf/content.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/react-render-perf/content.mdx b/src/react-render-perf/content.mdx index d2f304a..213a7eb 100644 --- a/src/react-render-perf/content.mdx +++ b/src/react-render-perf/content.mdx @@ -29,6 +29,9 @@ will appear with a cyan outline around it. +NOTE: Sometimes the plugin with render a highlight rectangle around a component when +it shouldn't so please double check that it's being rendered using the "⚛️ Profiler". + Switch to the "Profiler" tab in the dialog and enable "Record why each component rendered while profiling".