shakacode / react_on_rails

Integration of React + Webpack + Rails + rails/webpacker including server-side rendering of React, enabling a better developer experience and faster client performance.
https://www.shakacode.com/react-on-rails/docs/
MIT License
5.12k stars 631 forks source link

When server-bundle.js register a lot of server render components making the server render performance reduce big #1574

Closed MarkWang2 closed 1 year ago

MarkWang2 commented 1 year ago

Is your feature request related to a problem? Please describe. Our project needs to register a lot of server render components to server-bundle.js , this way makes the performance drop big(compare to only registering one server render component)

Describe the solution you'd like Do we have some solutions to split the server-bundle.js file, to make performance better? Thanks.

Judahmeek commented 1 year ago

Currently, no.

@justin808 this sounds like a good RoR Pro NodeRenderer feature.

justin808 commented 1 year ago

@MarkWang2 I'm pretty sure this can work with our https://www.shakacode.com/react-on-rails-pro/ Node renderer.

Please email me or ping me on the React Rails Slack discussion.