Skip to content

Commit 6bab074

Browse files
committed
Small cleanup in ReactFiberCompleteWork (#27681)
These are all functionally equivalent changes. - remove double negation and more explicit naming of `hadNoMutationsEffects` - use docblock syntax that's consumed by Flow - remove useless cast DiffTrain build for [c4c87e0](c4c87e0)
1 parent c907964 commit 6bab074

12 files changed

+52
-28
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0e352ea01c0209b6c5e23f0e857af4e01c783024
1+
c4c87e049b891ebc38a7a14b8c93285c877e90af

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,4 +587,4 @@ exports.useSyncExternalStore = function (
587587
exports.useTransition = function () {
588588
return ReactCurrentDispatcher.current.useTransition();
589589
};
590-
exports.version = "18.3.0-www-classic-93c0536e";
590+
exports.version = "18.3.0-www-classic-b6e8ec88";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,4 +579,4 @@ exports.useSyncExternalStore = function (
579579
exports.useTransition = function () {
580580
return ReactCurrentDispatcher.current.useTransition();
581581
};
582-
exports.version = "18.3.0-www-modern-bd02fc79";
582+
exports.version = "18.3.0-www-modern-7fb93a7a";

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if (__DEV__) {
6666
return self;
6767
}
6868

69-
var ReactVersion = "18.3.0-www-classic-6755280f";
69+
var ReactVersion = "18.3.0-www-classic-845b4481";
7070

7171
var LegacyRoot = 0;
7272
var ConcurrentRoot = 1;
@@ -18667,9 +18667,12 @@ if (__DEV__) {
1866718667
};
1866818668
}
1866918669

18670+
/**
18671+
* Tag the fiber with an update effect. This turns a Placement into
18672+
* a PlacementAndUpdate.
18673+
*/
18674+
1867018675
function markUpdate(workInProgress) {
18671-
// Tag the fiber with an update effect. This turns a Placement into
18672-
// a PlacementAndUpdate.
1867318676
workInProgress.flags |= Update;
1867418677
}
1867518678

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if (__DEV__) {
6666
return self;
6767
}
6868

69-
var ReactVersion = "18.3.0-www-modern-adf7c13c";
69+
var ReactVersion = "18.3.0-www-modern-b4d8ae24";
7070

7171
var LegacyRoot = 0;
7272
var ConcurrentRoot = 1;
@@ -18340,9 +18340,12 @@ if (__DEV__) {
1834018340
};
1834118341
}
1834218342

18343+
/**
18344+
* Tag the fiber with an update effect. This turns a Placement into
18345+
* a PlacementAndUpdate.
18346+
*/
18347+
1834318348
function markUpdate(workInProgress) {
18344-
// Tag the fiber with an update effect. This turns a Placement into
18345-
// a PlacementAndUpdate.
1834618349
workInProgress.flags |= Update;
1834718350
}
1834818351

compiled/facebook-www/ReactDOM-dev.classic.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23663,9 +23663,12 @@ if (__DEV__) {
2366323663
};
2366423664
}
2366523665

23666+
/**
23667+
* Tag the fiber with an update effect. This turns a Placement into
23668+
* a PlacementAndUpdate.
23669+
*/
23670+
2366623671
function markUpdate(workInProgress) {
23667-
// Tag the fiber with an update effect. This turns a Placement into
23668-
// a PlacementAndUpdate.
2366923672
workInProgress.flags |= Update;
2367023673
}
2367123674

@@ -34881,7 +34884,7 @@ if (__DEV__) {
3488134884
return root;
3488234885
}
3488334886

34884-
var ReactVersion = "18.3.0-www-classic-a5cdf515";
34887+
var ReactVersion = "18.3.0-www-classic-d456dfab";
3488534888

3488634889
function createPortal$1(
3488734890
children,

compiled/facebook-www/ReactDOM-dev.modern.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23522,9 +23522,12 @@ if (__DEV__) {
2352223522
};
2352323523
}
2352423524

23525+
/**
23526+
* Tag the fiber with an update effect. This turns a Placement into
23527+
* a PlacementAndUpdate.
23528+
*/
23529+
2352523530
function markUpdate(workInProgress) {
23526-
// Tag the fiber with an update effect. This turns a Placement into
23527-
// a PlacementAndUpdate.
2352823531
workInProgress.flags |= Update;
2352923532
}
2353023533

@@ -34702,7 +34705,7 @@ if (__DEV__) {
3470234705
return root;
3470334706
}
3470434707

34705-
var ReactVersion = "18.3.0-www-modern-b881b4d4";
34708+
var ReactVersion = "18.3.0-www-modern-81cc9bc4";
3470634709

3470734710
function createPortal$1(
3470834711
children,

compiled/facebook-www/ReactDOMServer-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (__DEV__) {
1919
var React = require("react");
2020
var ReactDOM = require("react-dom");
2121

22-
var ReactVersion = "18.3.0-www-modern-adf7c13c";
22+
var ReactVersion = "18.3.0-www-modern-b4d8ae24";
2323

2424
// This refers to a WWW module.
2525
var warningWWW = require("warning");

compiled/facebook-www/ReactDOMTesting-dev.classic.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23800,9 +23800,12 @@ if (__DEV__) {
2380023800
};
2380123801
}
2380223802

23803+
/**
23804+
* Tag the fiber with an update effect. This turns a Placement into
23805+
* a PlacementAndUpdate.
23806+
*/
23807+
2380323808
function markUpdate(workInProgress) {
23804-
// Tag the fiber with an update effect. This turns a Placement into
23805-
// a PlacementAndUpdate.
2380623809
workInProgress.flags |= Update;
2380723810
}
2380823811

@@ -35505,7 +35508,7 @@ if (__DEV__) {
3550535508
return root;
3550635509
}
3550735510

35508-
var ReactVersion = "18.3.0-www-classic-488f91a4";
35511+
var ReactVersion = "18.3.0-www-classic-adaf3ac3";
3550935512

3551035513
function createPortal$1(
3551135514
children,

compiled/facebook-www/ReactDOMTesting-dev.modern.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23659,9 +23659,12 @@ if (__DEV__) {
2365923659
};
2366023660
}
2366123661

23662+
/**
23663+
* Tag the fiber with an update effect. This turns a Placement into
23664+
* a PlacementAndUpdate.
23665+
*/
23666+
2366223667
function markUpdate(workInProgress) {
23663-
// Tag the fiber with an update effect. This turns a Placement into
23664-
// a PlacementAndUpdate.
2366523668
workInProgress.flags |= Update;
2366623669
}
2366723670

@@ -35326,7 +35329,7 @@ if (__DEV__) {
3532635329
return root;
3532735330
}
3532835331

35329-
var ReactVersion = "18.3.0-www-modern-bd02fc79";
35332+
var ReactVersion = "18.3.0-www-modern-7fb93a7a";
3533035333

3533135334
function createPortal$1(
3533235335
children,

0 commit comments

Comments
 (0)