refactor(runtime-core): refactor slots resolution

Get rid of need for setup proxy in production mode and improve console
inspection in dev mode
This commit is contained in:
Evan You
2020-04-06 21:06:48 -04:00
parent c5f0f63b91
commit cb504c287f
5 changed files with 151 additions and 92 deletions

View File

@@ -43,7 +43,7 @@ import {
} from './scheduler'
import { effect, stop, ReactiveEffectOptions, isRef } from '@vue/reactivity'
import { updateProps } from './componentProps'
import { resolveSlots } from './componentSlots'
import { updateSlots } from './componentSlots'
import { pushWarningContext, popWarningContext, warn } from './warning'
import { ComponentPublicInstance } from './componentProxy'
import { createAppAPI, CreateAppFunction } from './apiCreateApp'
@@ -1245,7 +1245,7 @@ function baseCreateRenderer(
instance.vnode = nextVNode
instance.next = null
updateProps(instance, nextVNode.props, optimized)
resolveSlots(instance, nextVNode.children)
updateSlots(instance, nextVNode.children)
}
const patchChildren: PatchChildrenFn = (