Skip to content

useDebugValue - production deploys don't show anything #190

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

Closed
kenneth-gray opened this issue Dec 19, 2022 · 2 comments · Fixed by #192
Closed

useDebugValue - production deploys don't show anything #190

kenneth-gray opened this issue Dec 19, 2022 · 2 comments · Fixed by #192

Comments

@kenneth-gray
Copy link
Contributor

I suspect useDebugValue is a noop in production deployments. Therefore the devtools don't show any labels for minified hook names.

Potential options:

  1. Remove links to production deployments for this exercise
  2. Build development versions for production deployments

You could mention it in the text instead, but I'm not sure that's a good option.

@kentcdodds
Copy link
Member

I think it's useful for people to see that it doesn't do anything in production so we'll keep the links, but adding a note in the instructions sounds helpful. Would you like to do that?

@kenneth-gray
Copy link
Contributor Author

Sure 👍

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 a pull request may close this issue.

2 participants