welldone-software / why-did-you-render

why-did-you-render by Welldone Software monkey patches React to notify you about potentially avoidable re-renders. (Works with React Native as well.)
https://www.npmjs.com/package/@welldone-software/why-did-you-render
MIT License
11.32k stars 199 forks source link

Is it possible to print testID along side Component name on wdyr logs? #269

Open moxen-dev opened 1 year ago

moxen-dev commented 1 year ago

I did not saw a discussion tab so I will post this here. It is not a bug, it is more of a question or suggestion.

I have been using wdyr for the first time in the last couple of days and I believe could be helpful if I can identify the components faster in the logs. Sometimes I see that a Pressable rendered again but my screen has multiple Pressables in multiple places. Reading the logs further help understand what is the exactly component but I believe that using an easier method could speed things up.

What do you think?

vzaidman commented 1 year ago

Sounds like a good idea but I don't have the capacity to work on that.