Skip to content

Commit

Permalink
Remove unused argument from finishConcurrentRender (facebook#19689)
Browse files Browse the repository at this point in the history
  • Loading branch information
inottn authored and koto committed Jun 15, 2021
1 parent 21a9249 commit 4223ad4
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 4223ad4

Please sign in to comment.