-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Provide a way to filter types of components from the Elements tree view #1076
Comments
I think there should be a way to hide those components from within the code. For example, setting a static property on the component type: Component.devTools = false; // example Some good points I see on this approach:
Well, just some thoughts. Thank you for the amazing work, guys. |
As a slightly alternate suggestion: perhaps if React exported some |
Proof of concept (hack) pushed to https://github.com/bvaughn/react-devtools/tree/hidden-types Has a couple of pain points to work out if we decide it's worth releasing:
|
Half a year has passed, is there news? This is the most important feature I've seen in devtools. I am very much tired of this information noise when working with react devtools when you see tons of native elements |
If there was an update on this, we would have updated the GitHub issue. 😄 We're a small team and we maintain a large surface area. Things often don't move as fast as we'd like. That being said, you may be interested in taking the new (still experimental) DevTools version for a test drive. It doesn't show native elements at all, so it may reduce some of the "noise" you're talking about. You can find early release builds in the top-right corner of the demo page: |
Is this the place to give feedback on your build @bvaughn ? (the fork repo has issue tab disabled) Otherwise - I'm loving this feature as it makes the tree readable again! |
@davidfurlong You and your teammates should check out the DevTools beta. It has a pretty sweet component filtering UI built into it that's much more powerful than this prototype. It also shows the list of "owners" for each component (meaning the things that rendered it, not just its parents in the tree) which should make the scanning you described much faster. |
Thanks, just checked it out, awesome work! The filters look like they will solve the aforementioned struggles! |
React DevTools has been rewritten and recently launched a new version 4 UI. The source code for this rewrite was done in a separate repository and now lives in the main React repo (github.com/facebook/react). Because version 4 was a total rewrite, and all issues in this repository are related to the old version 3 of the extension, I am closing all issues in this repository. If you can still reproduce this issue, or believe this feature request is still relevant, please open a new issue in the React repo: https://github.com/facebook/react/issues/new?labels=Component:%20Developer%20Tools |
Based on some user recent feedback I gathered via Twitter, one common request is some sort of method of filtering elements from the tree to make it less noisy.
Some people have mentioned using a string/regex to filter, and that could work for hiding e.g. HOCs– but I'm picturing a panel that shows all of the types of elements (e.g. host nodes, fragments, context consumer/provider, etc) with checkboxes next to them to indicate whether they should be visible or not.
These settings should be persisted between page reloads through the use of a mechanism like
utils/storage
added in PR #1069.The text was updated successfully, but these errors were encountered: