mirror of https://github.com/vuejs/core.git
chore: tweaks
This commit is contained in:
parent
2a74d10d32
commit
1b05c28342
|
@ -126,11 +126,13 @@ export function defineAsyncComponent<
|
||||||
;(instance.bu || (instance.bu = [])).push(() => (patched = true))
|
;(instance.bu || (instance.bu = [])).push(() => (patched = true))
|
||||||
const performHydrate = () => {
|
const performHydrate = () => {
|
||||||
// skip hydration if the component has been patched
|
// skip hydration if the component has been patched
|
||||||
if (__DEV__ && patched) {
|
if (patched) {
|
||||||
warn(
|
if (__DEV__) {
|
||||||
`Skipping lazy hydration for component '${getComponentName(resolvedComp!) || resolvedComp!.__file}': ` +
|
warn(
|
||||||
`it was updated before lazy hydration performed.`,
|
`Skipping lazy hydration for component '${getComponentName(resolvedComp!) || resolvedComp!.__file}': ` +
|
||||||
)
|
`it was updated before lazy hydration performed.`,
|
||||||
|
)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
hydrate()
|
hydrate()
|
||||||
|
|
Loading…
Reference in New Issue