MCPcopy
hub / github.com/vuejs/core / logMismatchError

Function logMismatchError

packages/runtime-core/src/hydration.ts:59–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57
58let hasLoggedMismatchError = false
59const logMismatchError = () => {
60 if (__TEST__ || hasLoggedMismatchError) {
61 return
62 }
63 // this error should show up in production
64 console.error('Hydration completed but contains mismatches.')
65 hasLoggedMismatchError = true
66}
67
68const isSVGContainer = (container: Element) =>
69 container.namespaceURI!.includes('svg') &&

Callers 5

hydrateNodeFunction · 0.85
hydrateElementFunction · 0.85
hydrateChildrenFunction · 0.85
hydrateFragmentFunction · 0.85
handleMismatchFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected