Closed ZibanPirate closed 1 year ago
pages unmount and mount unnecessarily because React.lazy is a factory and it produces new component on each render.
so instead we now use @loadable/component which fixes this problem by caching each component with a key.
@loadable/component
Description
pages unmount and mount unnecessarily because React.lazy is a factory and it produces new component on each render.
so instead we now use
@loadable/component
which fixes this problem by caching each component with a key.Type of change