Skip to content
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

next.js/examples/with-react-md/ gives checksum invalid error when rendering on client. #1049

Closed
perjg opened this issue Feb 9, 2017 · 5 comments
Labels
Upstream Related to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).

Comments

@perjg
Copy link

perjg commented Feb 9, 2017

Run the with-react-md as described in the README. When loading, it gives a checksum invalid error from React:

Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:
(client) ton><!-- react-empty: 15
(server) ton><span data-reactid="1

Expected behavior: Examples should show how to use isomorphic rendering properly, and not throw this error.

@frol
Copy link
Contributor

frol commented Feb 9, 2017

Thank you for creating a separate issue. It was already reported in #940 (comment), and as a result of my investigations I have reported this issue to React-MD upstream: mlaursen/react-md#236

@perjg
Copy link
Author

perjg commented Feb 9, 2017

@frol Thanks for the explanation.
As far as I can tell, the bug is triggered by NavigationDrawer.DrawerTypes.PERSISTENT_MINI

@timneutkens timneutkens added the Upstream Related to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.). label Feb 9, 2017
@timneutkens
Copy link
Member

Closing this in favor of the upstream ticket.

@frol
Copy link
Contributor

frol commented Feb 9, 2017

@perjg Yes, there is no warning when non-MINI drawer types are used.

@frol
Copy link
Contributor

frol commented Mar 18, 2017

@perjg @alexedev Just for your info, the invalid checksum issue has been resolved in React-MD upstream, which is yet to release with 1.1.x line, but you can try using the master branch (it is quite stable yet the APIs of some components may change a little): mlaursen/react-md#236

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Upstream Related to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).
Projects
None yet
Development

No branches or pull requests

3 participants