fix(runtime-core): fix render function + optimized slot edge case (#3523)

fix #2893

Manually rendering the optimized slots should allow subsequent updates to exit the optimization mode correctly
This commit is contained in:
HcySunYang
2021-04-02 07:28:58 +08:00
committed by GitHub
parent c90fb945f4
commit 995d76bd12
3 changed files with 71 additions and 4 deletions

View File

@@ -1576,7 +1576,7 @@ function baseCreateRenderer(
instance.vnode = nextVNode
instance.next = null
updateProps(instance, nextVNode.props, prevProps, optimized)
updateSlots(instance, nextVNode.children)
updateSlots(instance, nextVNode.children, optimized)
pauseTracking()
// props update may have triggered pre-flush watchers.