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
// https://github.com/facebook/react/blob/main/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js used as a reference
19
19
consthtmlTagsWarnings=newSet([
20
-
'Warning: In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s',
21
-
'Warning: In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s',
22
-
'Warning: In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.',
23
-
"Warning: In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.",
24
-
'Warning: Expected server HTML to contain a matching <%s> in <%s>.%s',
25
-
'Warning: Did not expect server HTML to contain a <%s> in <%s>.%s',
20
+
'In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s',
21
+
'In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s',
22
+
'In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.',
23
+
"In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.",
24
+
'Expected server HTML to contain a matching <%s> in <%s>.%s',
25
+
'Did not expect server HTML to contain a <%s> in <%s>.%s',
26
26
])
27
27
consttextAndTagsMismatchWarnings=newSet([
28
-
'Warning: Expected server HTML to contain a matching text node for "%s" in <%s>.%s',
29
-
'Warning: Did not expect server HTML to contain the text node "%s" in <%s>.%s',
28
+
'Expected server HTML to contain a matching text node for "%s" in <%s>.%s',
29
+
'Did not expect server HTML to contain the text node "%s" in <%s>.%s',
30
30
])
31
31
consttextMismatchWarning=
32
-
'Warning: Text content did not match. Server: "%s" Client: "%s"%s'
32
+
'Text content did not match. Server: "%s" Client: "%s"%s'
0 commit comments