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

Deprecating the library #302

Closed vzaidman closed 1 month ago

jkoutavas commented 2 months ago

Oh?

jbanovs commented 1 month ago

@vzaidman Hello! Could you please explain the motivation behind creating this issue? It would be very helpful.

Recently, we've had many discussions about whether we really need memoization and when to use it. We've also debated when re-renders should be considered problematic.

It seems that React is efficient enough now on its own, and the React team suggests not to overly focus on preventing re-renders or memoize everything unless there's an obvious performance issue in the application.

What do you think?

vzaidman commented 1 month ago

I had a blocker in making the library work with React 19 so I was planning to deprecate the library, however I found a way to fix it, so I'm closing the issue for now.