Show line where hook that changed is used (feature request) #191
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
I currently have a very big hook, with dozens of useStates, lots of them have empty arrays which trigger unncesary re-renders. But I don't know which is the one doing it each time wdyr logs it's output. I get:
When would be very useful for me is:
Knowing which hook is changing would be useful, specially in nested hooks scenarios, for example I have a hook which uses a hook, and that internal one has state, but wdyr does not even specify which hook is that useState from (I guess react makes no distinction, it only cares about hook declaration order, so not sure how possible would this feature request be.)
The text was updated successfully, but these errors were encountered: