Skip to content

Commit ccb6c39

Browse files
authored
Remove unused argument (#19600)
1 parent 6291255 commit ccb6c39

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ function handleError(root, thrownValue): void {
14701470
} while (true);
14711471
}
14721472

1473-
function pushDispatcher(root) {
1473+
function pushDispatcher() {
14741474
const prevDispatcher = ReactCurrentDispatcher.current;
14751475
ReactCurrentDispatcher.current = ContextOnlyDispatcher;
14761476
if (prevDispatcher === null) {
@@ -1586,7 +1586,7 @@ export function renderHasNotSuspendedYet(): boolean {
15861586
function renderRootSync(root: FiberRoot, lanes: Lanes) {
15871587
const prevExecutionContext = executionContext;
15881588
executionContext |= RenderContext;
1589-
const prevDispatcher = pushDispatcher(root);
1589+
const prevDispatcher = pushDispatcher();
15901590

15911591
// If the root or lanes have changed, throw out the existing stack
15921592
// and prepare a fresh one. Otherwise we'll continue where we left off.
@@ -1661,7 +1661,7 @@ function workLoopSync() {
16611661
function renderRootConcurrent(root: FiberRoot, lanes: Lanes) {
16621662
const prevExecutionContext = executionContext;
16631663
executionContext |= RenderContext;
1664-
const prevDispatcher = pushDispatcher(root);
1664+
const prevDispatcher = pushDispatcher();
16651665

16661666
// If the root or lanes have changed, throw out the existing stack
16671667
// and prepare a fresh one. Otherwise we'll continue where we left off.

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ function handleError(root, thrownValue): void {
14541454
} while (true);
14551455
}
14561456

1457-
function pushDispatcher(root) {
1457+
function pushDispatcher() {
14581458
const prevDispatcher = ReactCurrentDispatcher.current;
14591459
ReactCurrentDispatcher.current = ContextOnlyDispatcher;
14601460
if (prevDispatcher === null) {
@@ -1570,7 +1570,7 @@ export function renderHasNotSuspendedYet(): boolean {
15701570
function renderRootSync(root: FiberRoot, lanes: Lanes) {
15711571
const prevExecutionContext = executionContext;
15721572
executionContext |= RenderContext;
1573-
const prevDispatcher = pushDispatcher(root);
1573+
const prevDispatcher = pushDispatcher();
15741574

15751575
// If the root or lanes have changed, throw out the existing stack
15761576
// and prepare a fresh one. Otherwise we'll continue where we left off.
@@ -1645,7 +1645,7 @@ function workLoopSync() {
16451645
function renderRootConcurrent(root: FiberRoot, lanes: Lanes) {
16461646
const prevExecutionContext = executionContext;
16471647
executionContext |= RenderContext;
1648-
const prevDispatcher = pushDispatcher(root);
1648+
const prevDispatcher = pushDispatcher();
16491649

16501650
// If the root or lanes have changed, throw out the existing stack
16511651
// and prepare a fresh one. Otherwise we'll continue where we left off.

0 commit comments

Comments
 (0)