-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Isomorphic rendering: data-reactid and data-react-checksum not being cleared in v4. #3984
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
Comments
This would be a React issue. But those attributes are sent over in the server-rendered HTML, as they're needed to confirm the correct component tree when the client boots up on top of it. |
I'm happy to kick it to the React folks, but it seemed curious that it happened with RR4 and not with previous versions. |
@timdorr is it possible this could have something to do with the Miss component specifically? What I am seeing with SSR: This specific discrepancy seems to be causing the React warning: |
Miss doesn't work yet for picking up a server rendered page in the client.
|
#3877 addresses issues with |
For now I recommend server rendering them, then dumping a |
good idea, thanks @ryanflorence |
Version
4.0.0-alpha.4
Test Case
https://github.com/phyllisstein/react-router-v4-isomorphic-glitch
Steps to reproduce
Expected Behavior
When React mounts, the
data-react-checksum
anddata-reactid
attributes should be cleared from the server-rendered components.Actual Behavior
React appears to mount successfully, as clicking on a
Link
component does not send an additional request to the server, but the server-rendered attributes are not removed.The text was updated successfully, but these errors were encountered: