Skip to content

Commit 8f311c6

Browse files
authored
fix(runtime-core): swap client/server debug labels (#9089)
1 parent 8998afa commit 8f311c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/runtime-core/src/hydration.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ export function createHydrationFunctions(
134134
__DEV__ &&
135135
warn(
136136
`Hydration text mismatch:` +
137-
`\n- Client: ${JSON.stringify((node as Text).data)}` +
138-
`\n- Server: ${JSON.stringify(vnode.children)}`
137+
`\n- Server rendered: ${JSON.stringify((node as Text).data)}` +
138+
`\n- Client rendered: ${JSON.stringify(vnode.children)}`
139139
)
140140
;(node as Text).data = vnode.children as string
141141
}
@@ -406,8 +406,8 @@ export function createHydrationFunctions(
406406
`Hydration text content mismatch in <${
407407
vnode.type as string
408408
}>:\n` +
409-
`- Client: ${el.textContent}\n` +
410-
`- Server: ${vnode.children as string}`
409+
`- Server rendered: ${el.textContent}\n` +
410+
`- Client rendered: ${vnode.children as string}`
411411
)
412412
el.textContent = vnode.children as string
413413
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy