react icon indicating copy to clipboard operation
react copied to clipboard

[DevTools Bug]: Settings / Components / Hide components where... - need to be set on each reload.

Open joacim-boive opened this issue 1 year ago • 2 comments

Website or app

https://react.dev/

Repro steps

When filtering components under "Hide components where... " you need to modify the filter each time you've reloaded the page and/or hide/show the Chrome DevTools. Otherwise the filter doesn't bite and the hidden components still show.

For example: Name matches Anonymous

Works fine the first time you enter it - all Anonymous components are hidden. Reload the page and the filter no longer applies. You need to open: Settings / Components / Hide components where... and modify the entry and it works again:

For example: Name matches Anonymous*

Or toggle OFF - close the dialog - open the dialog and toggle ON - Now Anonymous is hidden again.

Screenshot 2024-11-04 at 13 10 37

Using 6.0.1-c7c68ef842 of the extension Chrome Version 130.0.6723.92 (Official Build) (arm64)

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)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

joacim-boive avatar Nov 04 '24 12:11 joacim-boive

This may be related to #16475.

dayabsm avatar Nov 07 '24 13:11 dayabsm

same problem

chqcose avatar Nov 29 '24 03:11 chqcose

I'm also seeing the "hide components" not working.

This may be related to #16475.

I double checked and it looks like React DevTools is successfully storing data in localStorage and remembering all settings, so this issue shouldn't be related to #16475.

zachhardesty7 avatar Jan 09 '25 19:01 zachhardesty7

Still happening and it's frustrated.

In order to get Profiler's "Highlight updates when components render" to work, I need to remove filtering out DOM-elements on Web according to #33423.

In Components panel it is correctly removed, but somehow settings are still the same, so I need to re-add filters and then removed them on every re-load.

riverkuo avatar Jul 01 '25 18:07 riverkuo