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))
|
||||
const performHydrate = () => {
|
||||
// skip hydration if the component has been patched
|
||||
if (__DEV__ && patched) {
|
||||
if (patched) {
|
||||
if (__DEV__) {
|
||||
warn(
|
||||
`Skipping lazy hydration for component '${getComponentName(resolvedComp!) || resolvedComp!.__file}': ` +
|
||||
`it was updated before lazy hydration performed.`,
|
||||
)
|
||||
}
|
||||
return
|
||||
}
|
||||
hydrate()
|
||||
|
|
Loading…
Reference in New Issue