You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is the server-side rendering actually working with your tool ?
I'm expecting so far to still have react_component('HelloMessage', {name: 'John'}, {prerender: true}) provided by react-rails
I've so far set things correctly, but from your readme, I might not get everything
I obviously dont know how to "require" the router when prerendering
Thanks for your hints (:
The text was updated successfully, but these errors were encountered:
@bbnnt and @i8ramin Sorry for the delay, somehow I wasn't getting notification emails from this repo.
Please take a look at the new version of the gem - 0.13.3.
Use the react_router helper like this and you will get your component pre-rendered on the server.
<%= react_router 'MyRoutes', 'HistoryLocation', {}, { prerender_location: path_to_route } %>
Is the server-side rendering actually working with your tool ?
I'm expecting so far to still have
react_component('HelloMessage', {name: 'John'}, {prerender: true})
provided by react-railsI've so far set things correctly, but from your readme, I might not get everything
I obviously dont know how to "require" the router when prerendering
Thanks for your hints (:
The text was updated successfully, but these errors were encountered: