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
React attempted to reuse markup in a container but the checksum was invalid. #113
Comments
Actually the first problem described in @matb issue does exist. It can be reproduced on fresh vortigern install.
Expected: BTW, notice same class names on the client and different class names on the server side at my case and at @matb case. System: |
@dmitry-korolev thanks for the explanation. Since I'm not using vortigern in my daytime job, I'm unable to spot these kind problems. However, I will check it out during the weekend. If you find a solution, please don't hesitate to open a PR 👍 |
@altayaydemir obviously, there is some difference in the context, passed to hash function. I'll try to figure something out, when I have more time. |
@dmitry-korolev Does the issue also appear in the production build? I currently have the impression that it only happens in the development build. |
@matb |
I just cloned the latest version and when running the app I get two errors:
1: During the load, this warning is thrown in the console:
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) ass="appContainer___1pMKz" data-reactroo (server) ass="appContainer___385DV" data-reactroo
2: On page refresh the page is first loaded without styles and afterwards they are applied. This makes the page look pretty ugly during the load. I checked in Postman and I can confirm, that no styles are present during the first load.
Is there any fix for this?
The text was updated successfully, but these errors were encountered: