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.2k stars 201 forks source link

Provide Support For @reduxjs/toolkit #95

Closed ctaylor4874 closed 4 years ago

ctaylor4874 commented 4 years ago

There is an issue when trying to use trackExtraHooks: [[ReactRedux, "useSelector"]] when using @reduxjs/toolkit. I was following the example here

This error is thrown and the application cannot load.

Screen Shot 2020-03-12 at 4 15 16 PM

vzaidman commented 4 years ago

duplicate of #98 indeed

vzaidman commented 4 years ago

the issue is discussed at #85 with a workaround