-
-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to update docs on react-router and server rendering. #809
Comments
https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/client/package.json#L88 uses Router v4 with React on Rails v9. Does anybody want to take a crack at a PR to update the docs on this? |
@justin808 I am Gezane Vega from Upwork. |
@justin808 How about my opinion? |
@justin808 i am shahid nawaz from upwork. From opinion we should not use 'window.location' as this is not a good approach to use window, document or some JQuery code. By doing some R&D i suggest to follow this. http://redux.js.org/docs/recipes/ServerRendering.html Thanks |
Code for server rendering a react component does nothing with the redirectLocation. The problem is that the redirect location cannot be used once we're in the rendering from the controller.
Doc problems to fix
Questions:
window.location = redirectLocation
?react_on_rails/node_package/src/serverRenderReactComponent.js
Line 10 in c5e968d
CC: @robwise @alexfedoseev
The text was updated successfully, but these errors were encountered: