wip: pass suspense down as argument

This commit is contained in:
Evan You
2019-09-10 12:08:30 -04:00
parent 0fff3a6ef5
commit 2677c91aba
3 changed files with 181 additions and 52 deletions

View File

@@ -7,10 +7,11 @@ export function patchDOMProp(
// unmounted.
prevChildren: any,
parentComponent: any,
parentSuspense: any,
unmountChildren: any
) {
if ((key === 'innerHTML' || key === 'textContent') && prevChildren != null) {
unmountChildren(prevChildren, parentComponent)
unmountChildren(prevChildren, parentComponent, parentSuspense)
}
el[key] = value == null ? '' : value
}