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
Route loaded twice #43
Comments
Ok, I just read this documentation - https://github.com/reactjs/react-router/blob/master/docs/guides/ServerRendering.md#async-routes When I first read this documentation, I didn't understand the asyn-routes section until I encountered this issue. |
Are you still seeing the double-load? |
No more double load 👍 |
I have the same problem, Can you write how you fixed it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello
I have actually an issue with my isomorphic react application. There is also code splitting with webpack.
I have been able to reproduce my issue with your project by modifying the render function of client.js
The problem can been seen by enable Network Throttle (Regular 3G).
Go to the page http://localhost:5000/post/hows-business-boomin and you can seen a blink of the page.
The page is displayed once thank to server rendering et then a second time and this is the problem.
It seems that the react-router client side a rendering the route again.
Have you been able to experience the same issue ? Can you explain me why plz ?
Why did wrapped the ReactDOM.render function into
match({ routes, location }, () => {}
by the way ?Best regards
The text was updated successfully, but these errors were encountered: