File tree 1 file changed +2
-3
lines changed
packages/react-reconciler/src
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -438,7 +438,6 @@ function createChildReconciler(
438
438
}
439
439
440
440
function mapRemainingChildren (
441
- returnFiber : Fiber ,
442
441
currentFirstChild : Fiber ,
443
442
) : Map < string | number , Fiber > {
444
443
// Add the remaining children to a temporary map so that we can find them by
@@ -1194,7 +1193,7 @@ function createChildReconciler(
1194
1193
}
1195
1194
1196
1195
// Add all children to a key map for quick lookups.
1197
- const existingChildren = mapRemainingChildren ( returnFiber , oldFiber ) ;
1196
+ const existingChildren = mapRemainingChildren ( oldFiber ) ;
1198
1197
1199
1198
// Keep scanning and use the map to restore deleted items as moves.
1200
1199
for ( ; newIdx < newChildren . length ; newIdx ++ ) {
@@ -1404,7 +1403,7 @@ function createChildReconciler(
1404
1403
}
1405
1404
1406
1405
// Add all children to a key map for quick lookups.
1407
- const existingChildren = mapRemainingChildren ( returnFiber , oldFiber ) ;
1406
+ const existingChildren = mapRemainingChildren ( oldFiber ) ;
1408
1407
1409
1408
// Keep scanning and use the map to restore deleted items as moves.
1410
1409
for ( ; ! step . done ; newIdx ++ , step = newChildren . next ( ) ) {
You can’t perform that action at this time.
0 commit comments