You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using StaticRouter without basename props <StaticRouter location={request.url} context={routerContext}>
and have Link with prop to /home <Link to={'/home'}>
Expected Behavior
Render result: <a href="/home' />
Actual Behavior
Render result: <a href="//home" />
I got this warning from my client console when I upgrade to latest beta,
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) href="/home" data-reactid="21
(server) href="//home" data-reactid="21
Version
4.0.0-beta.5
Test Case
Use it on isomorphic react app
Steps to reproduce
using
StaticRouter
without basename props<StaticRouter location={request.url} context={routerContext}>
and have
Link
with prop to/home
<Link to={'/home'}>
Expected Behavior
Render result:
<a href="/home' />
Actual Behavior
Render result:
<a href="//home" />
I got this warning from my client console when I upgrade to latest beta,
and lead me to find this culprit.
The text was updated successfully, but these errors were encountered: