diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index 2170a9192cf..963038e3f97 100644 --- a/packages/runtime-core/src/hydration.ts +++ b/packages/runtime-core/src/hydration.ts @@ -134,8 +134,8 @@ export function createHydrationFunctions( __DEV__ && warn( `Hydration text mismatch:` + - `\n- Client: ${JSON.stringify((node as Text).data)}` + - `\n- Server: ${JSON.stringify(vnode.children)}` + `\n- Server rendered: ${JSON.stringify((node as Text).data)}` + + `\n- Client rendered: ${JSON.stringify(vnode.children)}` ) ;(node as Text).data = vnode.children as string } @@ -406,8 +406,8 @@ export function createHydrationFunctions( `Hydration text content mismatch in <${ vnode.type as string }>:\n` + - `- Client: ${el.textContent}\n` + - `- Server: ${vnode.children as string}` + `- Server rendered: ${el.textContent}\n` + + `- Client rendered: ${vnode.children as string}` ) el.textContent = vnode.children as string }