DEV Community

Discussion on: Trying Lazy Loading and getting flicker?

Collapse
 
glebirovich profile image
Gleb Irovich

Here is a short working demo:
github.com/GlebIrovich/suspense-demo

I think something is wrong with the HOC. Because if you look at my implementation, valid Route can only accept HOC like a that: <Route path="/changePassword" exact={true} component={() => withHOC(LazyContent)} />

Hope it helps