Skip to content

Commit

Permalink
Merge pull request #4602 from sirreal/patch-1
Browse files Browse the repository at this point in the history
Add missing space in hydration mismatch message
  • Loading branch information
marvinhagemeister authored Dec 10, 2024
2 parents 5c9625a + d2904b9 commit eba80f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug/src/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,6 @@ options._hydrationMismatch = (newVNode, excessDomChildren) => {
.map(child => child && child.localName)
.filter(Boolean);
console.error(
`Expected a DOM node of type ${type} but found ${availableTypes.join(', ')}as available DOM-node(s), this is caused by the SSR'd HTML containing different DOM-nodes compared to the hydrated one.\n\n${getOwnerStack(newVNode)}`
`Expected a DOM node of type ${type} but found ${availableTypes.join(', ')} as available DOM-node(s), this is caused by the SSR'd HTML containing different DOM-nodes compared to the hydrated one.\n\n${getOwnerStack(newVNode)}`
);
};

0 comments on commit eba80f7

Please sign in to comment.