Skip to content

Commit

Permalink
Remove unused argument from finishConcurrentRender (#19689)
Browse files Browse the repository at this point in the history
inottn authored Aug 25, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent af219cc commit c4e0768
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
@@ -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: {
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberWorkLoop.old.js
Original file line number Diff line number Diff line change
@@ -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: {

0 comments on commit c4e0768

Please sign in to comment.