Enables $r to include hooks info for function components.
Ensures $r is periodically updated if the selected element is re-rendered.
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?
Closes #357
This change enables a few things:
Bridge
message.$r
to include hooks info for function components.$r
is periodically updated if the selected element is re-rendered.One thing to note is that the
hooks
value exposed is the internal data structure created byreact-debug-hooks
so it isn't necessarily as parsable or useful as theprops
orstate
objects. Still seems better than nothing though?