natahouse / react-snap

nata.house's fork of @stereobooster's react-snap:👻 Zero-configuration framework-agnostic static prerendering for SPAs
MIT License
32 stars 6 forks source link

Support react.lazy #37

Closed shapeshifta78 closed 2 years ago

shapeshifta78 commented 3 years ago

Feature Request

Is your feature request related to a problem? Please describe. Please add support for react-lazy. The only viable option at the moment (at least partly working for me) is to use loadable components which is totally outdated as 2.2.3. I get mixed prerendered results here, so sometimes it works and sometimes it does not.

Describe the solution you'd like Support of react.lazy

Describe alternatives you've considered Loadable components 2.2.3 only partly working

Teachability, Documentation, Adoption, Migration Strategy Usage of async component rendering

philipeatela commented 3 years ago

This would be a useful feature, but we are not actively implementing new things on this project anymore, so I believe it's unlikely that it will be implemented any time soon, since it can be a little bit complicated. We might implement some things but mostly smaller and easier to implement changes.

Feel free to come up with a PR if you wish though, and I might be able to help with reviewing/theorycrafting how to implement it.