I am currently working on a presentation about react modularization and it contains both redux-dynamic-modules and React.lazy (for code-splitting). While doing this, I was wondering why modules are not lazy loaded, but I couldn't find any existing solutions.
It seems to work in my sample to-do app and I was wondering if anyone tried this before and if this is, for some reason, a bad idea. I guess it might not have much benefit for smaller applications, but in bigger applications, this could be worthwhile? Or it's just premature optimization.
If this is worthwhile, could this functionality be incorporated into redux-dynamic-modules? Should I create a PR?
I am currently working on a presentation about react modularization and it contains both redux-dynamic-modules and React.lazy (for code-splitting). While doing this, I was wondering why modules are not lazy loaded, but I couldn't find any existing solutions.
So I started a proof-of-concept:
It seems to work in my sample to-do app and I was wondering if anyone tried this before and if this is, for some reason, a bad idea. I guess it might not have much benefit for smaller applications, but in bigger applications, this could be worthwhile? Or it's just premature optimization.
If this is worthwhile, could this functionality be incorporated into redux-dynamic-modules? Should I create a PR?