Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Option to hide Internal types in tree #1001

Closed
jquense opened this issue Mar 21, 2018 · 2 comments
Closed

Option to hide Internal types in tree #1001

jquense opened this issue Mar 21, 2018 · 2 comments

Comments

@jquense
Copy link
Contributor

jquense commented Mar 21, 2018

With 16.3 there are a lot more "plumbing" types like Mode, Context, ForwardRef, etc. and as folks migrate to the new API's I think we'll see tree depth balloon, especially around Context, where (I think) the tendency will be to make lots of small ContextProviders, rather than large pass-a-big-object-bag down Providers, because it's easier to mange updates and context value equality.

This is what i'm starting to see from react-bootstrap as we try out the new apis:

image

It'd be great if there was a toggle to hide these types, and maybe make it the default? I realize that seeing them is helpful in many contexts but for most folks this is plumbing of the libraries they use, it's not super important in that case that they always be visible, though the option is needed.

I'd be happy to try and take a swing at this if there is any agreement on adding it :)

@gaearon
Copy link
Contributor

gaearon commented Mar 23, 2018

Yeah we wanted to do something like this but never had the time. If you send a PR we'll definitely look!

@bvaughn
Copy link
Contributor

bvaughn commented Aug 19, 2019

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

@bvaughn bvaughn closed this as completed Aug 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants