Skip to content

Commit 678eefb

Browse files
committed
keep order
1 parent 85cf271 commit 678eefb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/reconcile.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ const diff = (aCh, bCh) => {
250250
}
251251
}
252252
}
253-
actions.concat(temp)
253+
for (let i = temp.length - 1; i >= 0; i--) {
254+
actions.push(temp[i])
255+
}
254256
return actions
255257
}
256258
export const getCurrentFiber = () => currentFiber || null

0 commit comments

Comments
 (0)