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.11k stars 196 forks source link

What do the colors mean? #261

Closed objectiveSee closed 1 year ago

objectiveSee commented 1 year ago

Do the colors in the terminal here (blue, yellow, green) mean anything? They don't seem to correspond to these colors https://github.com/welldone-software/why-did-you-render#titlecolor--diffnamecolor--diffpathcolor for example, yellow is not defined there. I am happy to update the docs if someone can help me understand this :)

Screen Shot 2022-11-22 at 11 42 25 AM

vzaidman commented 1 year ago

If your terminal re-writes the colours then there's nothing we can do about that. The browser is supposed to show the right colours anyway.

objectiveSee commented 1 year ago

But what do the colors mean? Is there any significance to them?

vzaidman commented 1 year ago

Nope. Just colours