Skip to content

Commit b0a78a0

Browse files
authored
Merge pull request #409 from RosApr/fix-suspense
fix suspenseRender reconcile mark child fiber as removed bug
2 parents f007dc0 + ba9f17e commit b0a78a0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/reconcile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const suspenseRender = (fiber, promise) => {
7070
}
7171
const fallbackFragment = simpleVnode(boundary.props.fallback)
7272
fallbackFragment.key = SUSPENSE_FALLBACK_KEY
73+
boundary.kids = []
7374
reconcileChildren(boundary, [primaryChildFragment, fallbackFragment])
7475
let pSet = suspendPromiseMap.get(promise)
7576
if(!pSet) {

0 commit comments

Comments
 (0)