why-did-you-render by Welldone Software monkey patches React to notify you about potentially avoidable re-renders. (Works with React Native as well.)
11.32k
stars
199
forks
source link
react-refresh-webpack-plugin not updating component when wrapped with React.memo. #292
Open
kyukk opened 8 months ago
When wrapping component in React.memo its stop to updating, when something changed. Its happens only if component being exported and wrapped in memo.
wdyr.js
index.tsx
App.tsx
If I remove wdyr or remove React.memo or will import through React.lazy it work fine.
If change it like this it work to:
App.tsx