@samitouri / QOS-React / commits / 7a60a80921

Make server hydration warnings more obviously about server (#10312)

Dan Abramov committed Jul 27, 2017 at 18:02 UTC 7a60a8092144e8ab2c85c6906dd4a7a5815cff1f
1 file changed +2 -2
src/renderers/dom/fiber/ReactDOMFiberComponent.js
+2 -2
@@ -1064,7 +1064,7 @@ var ReactDOMFiberComponent = {
1064 didWarnInvalidHydration = true;
1065 warning(
1066 false,
1067 - 'Did not find a matching <%s> in <%s>.',
1067 + 'Expected server HTML to contain a matching <%s> in <%s>.',
1068 tag,
1069 parentNode.nodeName.toLowerCase(),
1070 );
@@ -1086,7 +1086,7 @@ var ReactDOMFiberComponent = {
1086 didWarnInvalidHydration = true;
1087 warning(
1088 false,
1089 - 'Did not find a matching text node for "%s" in <%s>.',
1089 + 'Expected server HTML to contain a matching text node for "%s" in <%s>.',
1090 text,
1091 parentNode.nodeName.toLowerCase(),
1092 );