diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.new.js b/packages/react-reconciler/src/ReactFiberWorkLoop.new.js index 5a3d2fe59b68f..ecd4611c3402d 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.new.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.new.js @@ -859,7 +859,7 @@ function performConcurrentWorkOnRoot(root) { const finishedWork: Fiber = (root.current.alternate: any); root.finishedWork = finishedWork; root.finishedLanes = lanes; - finishConcurrentRender(root, finishedWork, exitStatus, lanes); + finishConcurrentRender(root, exitStatus, lanes); } ensureRootIsScheduled(root, now()); @@ -871,7 +871,7 @@ function performConcurrentWorkOnRoot(root) { return null; } -function finishConcurrentRender(root, finishedWork, exitStatus, lanes) { +function finishConcurrentRender(root, exitStatus, lanes) { switch (exitStatus) { case RootIncomplete: case RootFatalErrored: { diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.old.js b/packages/react-reconciler/src/ReactFiberWorkLoop.old.js index 59cdb98905509..21ac3eeb65ce0 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.old.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.old.js @@ -847,7 +847,7 @@ function performConcurrentWorkOnRoot(root) { const finishedWork: Fiber = (root.current.alternate: any); root.finishedWork = finishedWork; root.finishedLanes = lanes; - finishConcurrentRender(root, finishedWork, exitStatus, lanes); + finishConcurrentRender(root, exitStatus, lanes); } ensureRootIsScheduled(root, now()); @@ -859,7 +859,7 @@ function performConcurrentWorkOnRoot(root) { return null; } -function finishConcurrentRender(root, finishedWork, exitStatus, lanes) { +function finishConcurrentRender(root, exitStatus, lanes) { switch (exitStatus) { case RootIncomplete: case RootFatalErrored: {