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-
functionpushDispatcher(root){
1473+
functionpushDispatcher(){
14741474
constprevDispatcher=ReactCurrentDispatcher.current;
14751475
ReactCurrentDispatcher.current=ContextOnlyDispatcher;
14761476
if(prevDispatcher===null){
@@ -1586,7 +1586,7 @@ export function renderHasNotSuspendedYet(): boolean {
15861586
functionrenderRootSync(root: FiberRoot,lanes: Lanes){
15871587
constprevExecutionContext=executionContext;
15881588
executionContext|=RenderContext;
1589-
constprevDispatcher=pushDispatcher(root);
1589+
constprevDispatcher=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
functionrenderRootConcurrent(root: FiberRoot,lanes: Lanes){
16621662
constprevExecutionContext=executionContext;
16631663
executionContext|=RenderContext;
1664-
constprevDispatcher=pushDispatcher(root);
1664+
constprevDispatcher=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-
functionpushDispatcher(root){
1457+
functionpushDispatcher(){
14581458
constprevDispatcher=ReactCurrentDispatcher.current;
14591459
ReactCurrentDispatcher.current=ContextOnlyDispatcher;
14601460
if(prevDispatcher===null){
@@ -1570,7 +1570,7 @@ export function renderHasNotSuspendedYet(): boolean {
15701570
functionrenderRootSync(root: FiberRoot,lanes: Lanes){
15711571
constprevExecutionContext=executionContext;
15721572
executionContext|=RenderContext;
1573-
constprevDispatcher=pushDispatcher(root);
1573+
constprevDispatcher=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
functionrenderRootConcurrent(root: FiberRoot,lanes: Lanes){
16461646
constprevExecutionContext=executionContext;
16471647
executionContext|=RenderContext;
1648-
constprevDispatcher=pushDispatcher(root);
1648+
constprevDispatcher=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)
close