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
"Caught [Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
130
+
"Caught [Hydration failed because the server rendered text didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
131
131
132
132
- A server/client branch \`if (typeof window !== 'undefined')\`.
133
133
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
"Caught [Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
199
+
"Caught [Hydration failed because the server rendered text didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
200
200
201
201
- A server/client branch \`if (typeof window !== 'undefined')\`.
202
202
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
"Caught [Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
746
+
"Caught [Hydration failed because the server rendered text didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
747
747
748
748
- A server/client branch \`if (typeof window !== 'undefined')\`.
749
749
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -320,7 +320,8 @@ function throwOnHydrationMismatch(fiber: Fiber) {
320
320
}
321
321
}
322
322
consterror=newError(
323
-
"Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n"+
323
+
`Hydration failed because the server rendered ${fromText ? 'text' : 'HTML'} didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
324
+
`+
324
325
'\n'+
325
326
"- A server/client branch `if (typeof window !== 'undefined')`.\n"+
326
327
"- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n"+
@@ -481,7 +482,7 @@ function prepareToHydrateHostInstance(
481
482
fiber,
482
483
);
483
484
if(!didHydrate&&favorSafetyOverHydrationPerf){
484
-
throwOnHydrationMismatch(fiber);
485
+
throwOnHydrationMismatch(fiber,true);
485
486
}
486
487
}
487
488
@@ -547,7 +548,7 @@ function prepareToHydrateHostTextInstance(fiber: Fiber): void {
0 commit comments