Remove unused argument (#19600)
inottn committed
Aug 13, 2020 at 22:11 UTC
ccb6c39451b502c6b3ff3c014962827c54bae548
2 files changed
+6
-6
packages/react-reconciler/src/ReactFiberWorkLoop.new.js
+3
-3
@@ -1470,7 +1470,7 @@ function handleError(root, thrownValue): void {
1470
} while (true);
1471
}
1472
1473
-function pushDispatcher(root) {
1473
+function pushDispatcher() {
1474
const prevDispatcher = ReactCurrentDispatcher.current;
1475
ReactCurrentDispatcher.current = ContextOnlyDispatcher;
1476
if (prevDispatcher === null) {
@@ -1586,7 +1586,7 @@ export function renderHasNotSuspendedYet(): boolean {
1586
function renderRootSync(root: FiberRoot, lanes: Lanes) {
1587
const prevExecutionContext = executionContext;
1588
executionContext |= RenderContext;
1589
- const prevDispatcher = pushDispatcher(root);
1589
+ const prevDispatcher = pushDispatcher();
1590
1591
// If the root or lanes have changed, throw out the existing stack
1592
// and prepare a fresh one. Otherwise we'll continue where we left off.
@@ -1661,7 +1661,7 @@ function workLoopSync() {
1661
function renderRootConcurrent(root: FiberRoot, lanes: Lanes) {
1662
const prevExecutionContext = executionContext;
1663
executionContext |= RenderContext;
1664
- const prevDispatcher = pushDispatcher(root);
1664
+ const prevDispatcher = pushDispatcher();
1665
1666
// If the root or lanes have changed, throw out the existing stack
1667
// and prepare a fresh one. Otherwise we'll continue where we left off.
packages/react-reconciler/src/ReactFiberWorkLoop.old.js
+3
-3
@@ -1454,7 +1454,7 @@ function handleError(root, thrownValue): void {
1454
} while (true);
1455
}
1456
1457
-function pushDispatcher(root) {
1457
+function pushDispatcher() {
1458
const prevDispatcher = ReactCurrentDispatcher.current;
1459
ReactCurrentDispatcher.current = ContextOnlyDispatcher;
1460
if (prevDispatcher === null) {
@@ -1570,7 +1570,7 @@ export function renderHasNotSuspendedYet(): boolean {
1570
function renderRootSync(root: FiberRoot, lanes: Lanes) {
1571
const prevExecutionContext = executionContext;
1572
executionContext |= RenderContext;
1573
- const prevDispatcher = pushDispatcher(root);
1573
+ const prevDispatcher = pushDispatcher();
1574
1575
// If the root or lanes have changed, throw out the existing stack
1576
// and prepare a fresh one. Otherwise we'll continue where we left off.
@@ -1645,7 +1645,7 @@ function workLoopSync() {
1645
function renderRootConcurrent(root: FiberRoot, lanes: Lanes) {
1646
const prevExecutionContext = executionContext;
1647
executionContext |= RenderContext;
1648
- const prevDispatcher = pushDispatcher(root);
1648
+ const prevDispatcher = pushDispatcher();
1649
1650
// If the root or lanes have changed, throw out the existing stack
1651
// and prepare a fresh one. Otherwise we'll continue where we left off.