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

DevTools + styled-components v4 = unusable bloat #1192

Closed
corysimmons opened this issue Oct 23, 2018 · 1 comment
Closed

DevTools + styled-components v4 = unusable bloat #1192

corysimmons opened this issue Oct 23, 2018 · 1 comment

Comments

@corysimmons
Copy link

https://spectrum.chat/?thread=a5856708-0786-499d-ab32-3626b45a1094

Is there anything that can be done to fix this?

@bvaughn
Copy link
Contributor

bvaughn commented Oct 27, 2018

Let's add this as a note to issue #1076– which is about providing more control over filtering components in DevTools. As things currently stand, DevTools is doing the right thing by showing all of the wrappers/HOCs that styled-components is using, but I understand it's not great from an ergonomics standpoint.

The recently-released static contextType attribute can help a little with a single context, but the "silver bullet" for this type of thing in the long term will be our recently announced feature "hooks".

In the meanwhile, #1076 will provide some controls over the display tree 😄

@bvaughn bvaughn closed this as completed Oct 27, 2018
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

2 participants