Skip to content

Commit 4223ad4

Browse files
inottnkoto
authored andcommitted
Remove unused argument from finishConcurrentRender (facebook#19689)
1 parent 21a9249 commit 4223ad4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/react-reconciler/src/ReactFiberWorkLoop.new.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ function performConcurrentWorkOnRoot(root) {
859859
const finishedWork: Fiber = (root.current.alternate: any);
860860
root.finishedWork = finishedWork;
861861
root.finishedLanes = lanes;
862-
finishConcurrentRender(root, finishedWork, exitStatus, lanes);
862+
finishConcurrentRender(root, exitStatus, lanes);
863863
}
864864

865865
ensureRootIsScheduled(root, now());
@@ -871,7 +871,7 @@ function performConcurrentWorkOnRoot(root) {
871871
return null;
872872
}
873873

874-
function finishConcurrentRender(root, finishedWork, exitStatus, lanes) {
874+
function finishConcurrentRender(root, exitStatus, lanes) {
875875
switch (exitStatus) {
876876
case RootIncomplete:
877877
case RootFatalErrored: {

packages/react-reconciler/src/ReactFiberWorkLoop.old.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ function performConcurrentWorkOnRoot(root) {
847847
const finishedWork: Fiber = (root.current.alternate: any);
848848
root.finishedWork = finishedWork;
849849
root.finishedLanes = lanes;
850-
finishConcurrentRender(root, finishedWork, exitStatus, lanes);
850+
finishConcurrentRender(root, exitStatus, lanes);
851851
}
852852

853853
ensureRootIsScheduled(root, now());
@@ -859,7 +859,7 @@ function performConcurrentWorkOnRoot(root) {
859859
return null;
860860
}
861861

862-
function finishConcurrentRender(root, finishedWork, exitStatus, lanes) {
862+
function finishConcurrentRender(root, exitStatus, lanes) {
863863
switch (exitStatus) {
864864
case RootIncomplete:
865865
case RootFatalErrored: {

0 commit comments

Comments
 (0)