From e087b4e02467db18766b7acc2218b3d38d60ce8b Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 29 Apr 2020 17:07:41 -0400 Subject: [PATCH] fix(hydration): fix text mismatch warning --- packages/runtime-core/src/hydration.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index 311ba344f26..4b7cd5a3207 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 }