@samitouri / QOS-React-2 / commits / c4e0768d74

Remove unused argument from `finishConcurrentRender` (#19689)

inottn committed Aug 25, 2020 at 20:49 UTC c4e0768d7487a9359b74986e3b07841d2520f593
2 files changed +4 -4
packages/react-reconciler/src/ReactFiberWorkLoop.new.js
+2 -2
@@ -859,7 +859,7 @@ function performConcurrentWorkOnRoot(root) {
859 const finishedWork: Fiber = (root.current.alternate: any);
860 root.finishedWork = finishedWork;
861 root.finishedLanes = lanes;
862 - finishConcurrentRender(root, finishedWork, exitStatus, lanes);
862 + finishConcurrentRender(root, exitStatus, lanes);
863 }
864
865 ensureRootIsScheduled(root, now());
@@ -871,7 +871,7 @@ function performConcurrentWorkOnRoot(root) {
871 return null;
872 }
873
874 -function finishConcurrentRender(root, finishedWork, exitStatus, lanes) {
874 +function finishConcurrentRender(root, exitStatus, lanes) {
875 switch (exitStatus) {
876 case RootIncomplete:
877 case RootFatalErrored: {
packages/react-reconciler/src/ReactFiberWorkLoop.old.js
+2 -2
@@ -847,7 +847,7 @@ function performConcurrentWorkOnRoot(root) {
847 const finishedWork: Fiber = (root.current.alternate: any);
848 root.finishedWork = finishedWork;
849 root.finishedLanes = lanes;
850 - finishConcurrentRender(root, finishedWork, exitStatus, lanes);
850 + finishConcurrentRender(root, exitStatus, lanes);
851 }
852
853 ensureRootIsScheduled(root, now());
@@ -859,7 +859,7 @@ function performConcurrentWorkOnRoot(root) {
859 return null;
860 }
861
862 -function finishConcurrentRender(root, finishedWork, exitStatus, lanes) {
862 +function finishConcurrentRender(root, exitStatus, lanes) {
863 switch (exitStatus) {
864 case RootIncomplete:
865 case RootFatalErrored: {