-
Notifications
You must be signed in to change notification settings - Fork 47.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DevTools Bug]: Highlight updates when components render error #32484
Comments
Fixing "Highlight updates when components render" ErrorIssue OverviewThe error occurs because React detects unnecessary re-renders. In the provided code, Component Solution: Memoize Component
|
You are wrong, when the code is like this
It hightlight updates correctly. |
So the difference occurs when app has a root element, such as div |
Website or app
Nnoe
Repro steps
When component App use <></>, It will mark that component b is also re-rendering,but in fact B did not rerender.
How often does this bug happen?
Every time
DevTools package (automated)
No response
DevTools version (automated)
No response
Error message (automated)
No response
Error call stack (automated)
Error component stack (automated)
GitHub query string (automated)
The text was updated successfully, but these errors were encountered: