Skip to content

Commit be6dd74

Browse files
committed
Revert "Fix ordering of deleted items (pmndrs#605)"
This reverts commit 80a9e8f.
1 parent 9b2dc9a commit be6dd74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useTransition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function diffItems({ first, prevProps, ...state }, props) {
213213
const keyIndex = _keys.indexOf(key)
214214
const item = _items[keyIndex]
215215
const slot = LEAVE
216-
deleted.push({
216+
deleted.unshift({
217217
...current[key],
218218
slot,
219219
destroyed: true,

0 commit comments

Comments
 (0)