Lazy loading of react-router4.0 routing uses bundle-loader configuration, and dynamic routing causes components to be re-rendered

after configuration, lazy loading is fine according to the configuration instructions of the budle-loader plug-in. However, when the page uses dynamic routing, it will cause the entire component to be re-rendered. The code and screenshot are as follows:

lazy loaded classify routing components

Bundle.jsx

classify

:

react-hot-loader:

I have tried other router4.0 solutions, but they seem to have no effect. For the time being, neither of these two problems has been solved. Thank you very much for the help of the gods who have solved them.

Mar.07,2021
Menu