Skip to content

Commit

Permalink
Remove unused argument from finishConcurrentRender (#19689)
Browse files Browse the repository at this point in the history
  • Loading branch information
inottn authored Aug 25, 2020
1 parent af219cc commit c4e0768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberWorkLoop.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberWorkLoop.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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: {
Expand Down

0 comments on commit c4e0768

Please sign in to comment.