Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add displayName to all contexts in react #175

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

hailwood
Copy link
Contributor

The default displayName for a react context is Context so in the react devtools we get
image

This can make it difficult to navigate the react devtools when there are a lot of contexts in play. This PR adds a displayName to the all contexts in the react portion of HeadlessUI meaning we end up with
image

Which is easier to understand at a glance and makes navigating around easier as we can find them in the search.

https://reactjs.org/docs/context.html#contextdisplayname

@vercel
Copy link

vercel bot commented Dec 13, 2020

@hailwood is attempting to deploy a commit to the Tailwind Labs Team on Vercel.

A member of the Team first needs to authorize it.

@RobinMalfait
Copy link
Member

Hey! Thank you for your PR!
Much appreciated! 🙏

@RobinMalfait RobinMalfait merged commit c79aa36 into tailwindlabs:develop Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants