Skip to content

Commit

Permalink
Small cleanup in ReactFiberCompleteWork (#27681)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
kassens committed Nov 10, 2023
1 parent c907964 commit 6bab074
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 28 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0e352ea01c0209b6c5e23f0e857af4e01c783024
c4c87e049b891ebc38a7a14b8c93285c877e90af
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,4 +587,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-www-classic-93c0536e";
exports.version = "18.3.0-www-classic-b6e8ec88";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,4 +579,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-www-modern-bd02fc79";
exports.version = "18.3.0-www-modern-7fb93a7a";
9 changes: 6 additions & 3 deletions compiled/facebook-www/ReactART-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if (__DEV__) {
return self;
}

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

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down Expand Up @@ -18667,9 +18667,12 @@ if (__DEV__) {
};
}

/**
* Tag the fiber with an update effect. This turns a Placement into
* a PlacementAndUpdate.
*/

function markUpdate(workInProgress) {
// Tag the fiber with an update effect. This turns a Placement into
// a PlacementAndUpdate.
workInProgress.flags |= Update;
}

Expand Down
9 changes: 6 additions & 3 deletions compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if (__DEV__) {
return self;
}

var ReactVersion = "18.3.0-www-modern-adf7c13c";
var ReactVersion = "18.3.0-www-modern-b4d8ae24";

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down Expand Up @@ -18340,9 +18340,12 @@ if (__DEV__) {
};
}

/**
* Tag the fiber with an update effect. This turns a Placement into
* a PlacementAndUpdate.
*/

function markUpdate(workInProgress) {
// Tag the fiber with an update effect. This turns a Placement into
// a PlacementAndUpdate.
workInProgress.flags |= Update;
}

Expand Down
9 changes: 6 additions & 3 deletions compiled/facebook-www/ReactDOM-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -23663,9 +23663,12 @@ if (__DEV__) {
};
}

/**
* Tag the fiber with an update effect. This turns a Placement into
* a PlacementAndUpdate.
*/

function markUpdate(workInProgress) {
// Tag the fiber with an update effect. This turns a Placement into
// a PlacementAndUpdate.
workInProgress.flags |= Update;
}

Expand Down Expand Up @@ -34881,7 +34884,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "18.3.0-www-classic-a5cdf515";
var ReactVersion = "18.3.0-www-classic-d456dfab";

function createPortal$1(
children,
Expand Down
9 changes: 6 additions & 3 deletions compiled/facebook-www/ReactDOM-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -23522,9 +23522,12 @@ if (__DEV__) {
};
}

/**
* Tag the fiber with an update effect. This turns a Placement into
* a PlacementAndUpdate.
*/

function markUpdate(workInProgress) {
// Tag the fiber with an update effect. This turns a Placement into
// a PlacementAndUpdate.
workInProgress.flags |= Update;
}

Expand Down Expand Up @@ -34702,7 +34705,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "18.3.0-www-modern-b881b4d4";
var ReactVersion = "18.3.0-www-modern-81cc9bc4";

function createPortal$1(
children,
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactDOMServer-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (__DEV__) {
var React = require("react");
var ReactDOM = require("react-dom");

var ReactVersion = "18.3.0-www-modern-adf7c13c";
var ReactVersion = "18.3.0-www-modern-b4d8ae24";

// This refers to a WWW module.
var warningWWW = require("warning");
Expand Down
9 changes: 6 additions & 3 deletions compiled/facebook-www/ReactDOMTesting-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -23800,9 +23800,12 @@ if (__DEV__) {
};
}

/**
* Tag the fiber with an update effect. This turns a Placement into
* a PlacementAndUpdate.
*/

function markUpdate(workInProgress) {
// Tag the fiber with an update effect. This turns a Placement into
// a PlacementAndUpdate.
workInProgress.flags |= Update;
}

Expand Down Expand Up @@ -35505,7 +35508,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "18.3.0-www-classic-488f91a4";
var ReactVersion = "18.3.0-www-classic-adaf3ac3";

function createPortal$1(
children,
Expand Down
9 changes: 6 additions & 3 deletions compiled/facebook-www/ReactDOMTesting-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -23659,9 +23659,12 @@ if (__DEV__) {
};
}

/**
* Tag the fiber with an update effect. This turns a Placement into
* a PlacementAndUpdate.
*/

function markUpdate(workInProgress) {
// Tag the fiber with an update effect. This turns a Placement into
// a PlacementAndUpdate.
workInProgress.flags |= Update;
}

Expand Down Expand Up @@ -35326,7 +35329,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "18.3.0-www-modern-bd02fc79";
var ReactVersion = "18.3.0-www-modern-7fb93a7a";

function createPortal$1(
children,
Expand Down
9 changes: 6 additions & 3 deletions compiled/facebook-www/ReactTestRenderer-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -16702,9 +16702,12 @@ if (__DEV__) {
};
}

/**
* Tag the fiber with an update effect. This turns a Placement into
* a PlacementAndUpdate.
*/

function markUpdate(workInProgress) {
// Tag the fiber with an update effect. This turns a Placement into
// a PlacementAndUpdate.
workInProgress.flags |= Update;
}

Expand Down Expand Up @@ -25810,7 +25813,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "18.3.0-www-classic-93c0536e";
var ReactVersion = "18.3.0-www-classic-b6e8ec88";

// Might add PROFILE later.

Expand Down
9 changes: 6 additions & 3 deletions compiled/facebook-www/ReactTestRenderer-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -16702,9 +16702,12 @@ if (__DEV__) {
};
}

/**
* Tag the fiber with an update effect. This turns a Placement into
* a PlacementAndUpdate.
*/

function markUpdate(workInProgress) {
// Tag the fiber with an update effect. This turns a Placement into
// a PlacementAndUpdate.
workInProgress.flags |= Update;
}

Expand Down Expand Up @@ -25810,7 +25813,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "18.3.0-www-modern-b9808d6c";
var ReactVersion = "18.3.0-www-modern-73e7dcee";

// Might add PROFILE later.

Expand Down

0 comments on commit 6bab074

Please sign in to comment.