fix(hydration): fix text mismatch warning
This commit is contained in:
parent
08b4e8815d
commit
e087b4e024
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user