We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a4ce48 commit df9f8f2Copy full SHA for df9f8f2
packages/runtime-vapor/src/dom/prop.ts
@@ -313,24 +313,6 @@ export function setElementText(
313
export function setHtml(el: TargetElement, value: any): void {
314
value = value == null ? '' : value
315
316
- if (isHydrating) {
317
- if (el.innerHTML === value) {
318
- el.$html = value
319
- return
320
- }
321
-
322
- if (!isMismatchAllowed(el, MismatchTypes.CHILDREN)) {
323
- if (__DEV__ || __FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__) {
324
- warn(
325
- `Hydration children mismatch on`,
326
- el,
327
- `\nServer rendered element contains different child nodes from client nodes.`,
328
- )
329
330
- logMismatchError()
331
332
333
334
if (el.$html !== value) {
335
el.innerHTML = el.$html = value
336
}
0 commit comments