Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Chrome Developer Tools, how can I disable the highlight around elements that refresh?

In a ReactJS application, I have the Chrome Developer Tools open

When I click on something I can see highlight around elements that refresh.

How can I disable the highlight so I can use the iPhoneX emulator without ugly highlight everywhere all the time?

like image 445
Dimitri Kopriwa Avatar asked Dec 22 '22 18:12

Dimitri Kopriwa


1 Answers

It's been changed at devtools v4, asked at Aug 17, 2019 and updated at Oct 3, 2019

(For React version < 15, use devtools v3 instead)

enter image description here

Refer:

  • related issue: https://github.com/facebook/react/issues/16437

  • related PR: https://github.com/facebook/react/pull/16989


This is how you do:

  1. F12 to open the developer tools
  2. Click on the Components tab
  3. Within the react tree, on the upper right corner, click on the settings icon
  4. Click on General tab
  5. Uncheck Highlight updates when components render
like image 80
keikai Avatar answered Dec 30 '22 09:12

keikai