fix(runtime-core): swap client/server debug labels (#9089)
This commit is contained in:
parent
8998afa427
commit
8f311c6f82
|
@ -134,8 +134,8 @@ export function createHydrationFunctions(
|
||||||
__DEV__ &&
|
__DEV__ &&
|
||||||
warn(
|
warn(
|
||||||
`Hydration text mismatch:` +
|
`Hydration text mismatch:` +
|
||||||
`\n- Client: ${JSON.stringify((node as Text).data)}` +
|
`\n- Server rendered: ${JSON.stringify((node as Text).data)}` +
|
||||||
`\n- Server: ${JSON.stringify(vnode.children)}`
|
`\n- Client rendered: ${JSON.stringify(vnode.children)}`
|
||||||
)
|
)
|
||||||
;(node as Text).data = vnode.children as string
|
;(node as Text).data = vnode.children as string
|
||||||
}
|
}
|
||||||
|
@ -406,8 +406,8 @@ export function createHydrationFunctions(
|
||||||
`Hydration text content mismatch in <${
|
`Hydration text content mismatch in <${
|
||||||
vnode.type as string
|
vnode.type as string
|
||||||
}>:\n` +
|
}>:\n` +
|
||||||
`- Client: ${el.textContent}\n` +
|
`- Server rendered: ${el.textContent}\n` +
|
||||||
`- Server: ${vnode.children as string}`
|
`- Client rendered: ${vnode.children as string}`
|
||||||
)
|
)
|
||||||
el.textContent = vnode.children as string
|
el.textContent = vnode.children as string
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue