fix(hmr): force full update in child component on slot update

This commit is contained in:
Evan You
2020-05-29 10:50:01 -04:00
parent 5ddd9d2417
commit 2408a65662
6 changed files with 24 additions and 17 deletions

View File

@@ -70,9 +70,9 @@ function rerender(id: string, newRender?: Function) {
}
instance.renderCache = []
// this flag forces child components with slot content to update
instance.renderUpdated = true
instance.hmrUpdated = true
instance.update()
instance.renderUpdated = false
instance.hmrUpdated = false
})
}