fix(hmr): always force full child component props update in HMR mode

This commit is contained in:
Evan You
2020-05-11 14:17:35 -04:00
parent 5b8883a846
commit 1b946c85df
2 changed files with 81 additions and 7 deletions

View File

@@ -1270,6 +1270,9 @@ function baseCreateRenderer(
nextVNode: VNode,
optimized: boolean
) => {
if (__DEV__ && instance.type.__hmrId) {
optimized = false
}
nextVNode.component = instance
const prevProps = instance.vnode.props
instance.vnode = nextVNode