]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(hydration): fix text mismatch warning
authorEvan You <yyx990803@gmail.com>
Wed, 29 Apr 2020 21:07:41 +0000 (17:07 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 29 Apr 2020 21:07:41 +0000 (17:07 -0400)
packages/runtime-core/src/hydration.ts

index 311ba344f260a824b582ea14ee81117ec92469d1..4b7cd5a3207caa3a34863dfa3942ec50bc11b1fc 100644 (file)
@@ -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
         }