From: Evan You Date: Wed, 29 Apr 2020 21:07:41 +0000 (-0400) Subject: fix(hydration): fix text mismatch warning X-Git-Tag: v3.0.0-beta.5~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e087b4e02467db18766b7acc2218b3d38d60ce8b;p=thirdparty%2Fvuejs%2Fcore.git fix(hydration): fix text mismatch warning --- diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index 311ba344f2..4b7cd5a320 100644 --- a/packages/runtime-core/src/hydration.ts +++ b/packages/runtime-core/src/hydration.ts @@ -102,8 +102,8 @@ export function createHydrationFunctions( __DEV__ && warn( `Hydration text mismatch:` + - `\n- Client: ${JSON.stringify(vnode.children)}`, - `\n- Server: ${JSON.stringify((node as Text).data)}` + `\n- Client: ${JSON.stringify((node as Text).data)}` + + `\n- Server: ${JSON.stringify(vnode.children)}` ) ;(node as Text).data = vnode.children as string }