Skip to content

Add useDebugValue to show the data label in the React DevTools #578

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

Merged
merged 3 commits into from
Aug 1, 2020
Merged

Add useDebugValue to show the data label in the React DevTools #578

merged 3 commits into from
Aug 1, 2020

Conversation

anothertempore
Copy link
Contributor

@anothertempore anothertempore commented Aug 1, 2020

close #574

With this PR, it will look like this in the React DevTools:

image

I'm not sure if we need to show undefined when the data is not returned as expected? like this:

image

@shuding
Copy link
Member

shuding commented Aug 1, 2020

Thank you for working on this! I think it's fine to show "undefined" there when the data is not ready or errored.

@shuding shuding merged commit 5f8e071 into vercel:master Aug 1, 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.

Better React DevTools support
2 participants