react-refresh-webpack-plugin icon indicating copy to clipboard operation
react-refresh-webpack-plugin copied to clipboard

Hello, I configured the hot update according to the document method, but when I changed the JS file, the whole page was refreshed instead of partial refresh. Why?

Open Yangbg2018 opened this issue 3 years ago • 3 comments

Hello, I configured the hot update according to the document method, but when I changed the JS file, the whole page was refreshed instead of partial refresh. Why?

Yangbg2018 avatar Jul 07 '22 03:07 Yangbg2018

@Yangbg2018 I have same issue above. In my case, I set liveReload: false in devServer then whole page reload issue have gone.

areemadev avatar Jul 13 '22 09:07 areemadev

@Yangbg2018 I have same issue above. In my case, I set liveReload: false in devServer then whole page reload issue have gone. I will refresh the whole page according to your configuration. I'm going to collapse.

Yangbg2018 avatar Jul 13 '22 09:07 Yangbg2018

Hi, did you read this?

https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/docs/TROUBLESHOOTING.md

Is it just refreshing for some changes, or all the changes? Do you have a lot of non-React-related named imports near application root?

pmmmwh avatar Jul 13 '22 09:07 pmmmwh