Skip to content

Commit

Permalink
Update hydration.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 5, 2023
1 parent 474b9af commit b8bf470
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/runtime-core/src/hydration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ export function createHydrationFunctions(
__DEV__ &&
warn(
`Hydration text mismatch:` +
`\n- Server: ${JSON.stringify((node as Text).data)}` +
`\n- Client: ${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
}
Expand Down Expand Up @@ -406,8 +406,8 @@ export function createHydrationFunctions(
`Hydration text content mismatch in <${
vnode.type as string
}>:\n` +
`- Server: ${el.textContent}\n` +
`- Client: ${vnode.children as string}`
`- Server rendered: ${el.textContent}\n` +
`- Client rendered: ${vnode.children as string}`
)
el.textContent = vnode.children as string
}
Expand Down

0 comments on commit b8bf470

Please sign in to comment.