[DevTools] polish hooks: complex values preview
See original GitHub issueWe create many useDebugValue
helpers, loggers and so one now, so we can feel less pain.
What matter (Updated)
- previewing complex values brifely like chrome devtools does it for arrays, sets, maps, objects,
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 automatically
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
React DevTools v4 will allow inspectable complex hook values
DevTools will always show your hooks in the order they're defined in the component, so if it's unclear what's what, you can always...
Read more >Why React Context is Not a "State Management" Tool (and ...
React's useState and useReducer hooks are good example of state management. With both of those hooks, you can: store an initial value by...
Read more >Why I Stopped Using Redux - DEV Community
It's a library with a very simple API and a couple of hooks to manage queries (fetching data) and mutations (changing data). Since...
Read more >Improve custom Hook debugging with useDebugValue
In this tutorial, learn how to use the useDebugValue Hook to make debugging reports for your custom React Hooks easier and more descriptive....
Read more >paE - River Thames Conditions - Environment Agency - GOV.UK
Untooned cartoon characters, Poland england october 2012, Windir likferd flac, ... Akito the exiled episode 5 preview, Murrayfield ice rink number, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have made some progress on this this afternoon. Needs more testing (and probably some new unit tests as well) but here’s a preview:
Tweaked things a bit more and I think it’s pretty close to mirroring what Chrome console does not. Feels a lot better when exploring nested values.
Should be ready to submit a PR soon. Need to update tests.