refactor(Suspense): remove unnecessary casts (#819)

This commit is contained in:
Cédric Exbrayat
2020-03-11 16:17:10 +01:00
committed by GitHub
parent 16a737dc67
commit f59779706b
2 changed files with 8 additions and 8 deletions

View File

@@ -260,7 +260,7 @@ function hasPropsChanged(prevProps: Data, nextProps: Data): boolean {
export function updateHOCHostEl(
{ vnode, parent }: ComponentInternalInstance,
el: object // HostNode
el: typeof vnode.el // HostNode
) {
while (parent && parent.subTree === vnode) {
;(vnode = parent.vnode).el = el