bvaughn / react-devtools-experimental

Experimental rewrite of the React DevTools extension
https://react-devtools-experimental.now.sh
MIT License
965 stars 55 forks source link

Refactor inspect/select logic so that $r contains hooks data #364

Closed bvaughn closed 5 years ago

bvaughn commented 5 years ago

Closes #357

This change enables a few things:

One thing to note is that the hooks value exposed is the internal data structure created by react-debug-hooks so it isn't necessarily as parsable or useful as the props or state objects. Still seems better than nothing though?

Screen Shot 2019-08-03 at 5 55 02 PM
bvaughn commented 5 years ago

Eh, I think this is probably a reasonable change. Rolling forward with it.