-
Notifications
You must be signed in to change notification settings - Fork 47k
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
[DevTools] polish hooks: complex values preview #17073
Comments
Big bucketed issues like this can be helpful in some cases, for project maintainers to track a larger initiative, but I'm not a fan of them for feature requests- particularly when some of the features are controversial (like "named hooks", which already has its own huge issue and so really doesn't need to be mentioned again here). I'm closing this. If you'd like to re-open an issue for the complex value preview, please feel free. I thought one had already been opened but I wasn't able to find it. The request of copying the name doesn't really seem like a common use case to me. (Why would you need to select+copy text like "State" or "Reducer"?) But you could open that as its own issue as well. |
Okay=) I updated description |
Excuse me, I don’t know before, that named hooks are controversial. Can you point me to the message, that explains the problem? |
Sure, if you search React GitHub issues for "named hooks" you'll find issue #16474 which explains in depth why it's kind of a complicated issue. |
Thank you |
We create many
useDebugValue
helpers, loggers and so one now, so we can feel less pain.What matter (Updated)
I wrote related twit recently with one of my DebugValue helpers. screenshot out here:
my named hooks currently require a
label
option unless react babel cannot transform name of variable automaticallyThe text was updated successfully, but these errors were encountered: