Skip to content

Commit 9d56820

Browse files
committed
Add feature flag to use microtasks in the React Native Fabric renderer (#27364)
## Summary This is part of an effort to align the event loop in React Native with its behavior on the Web. In this case, we're going to test enabling microtasks in React Native (Fabric) and we need React to schedule work using microtasks if available there. This just adds a feature flag to configure that behavior at runtime. ## How did you test this change? * Reviewed the generated code, which looks ok. * Did a manual sync of this PR to Meta's internal infra and tested it with my changes to enable microtasks in RN/Hermes. DiffTrain build for [54baa79](54baa79)
1 parent 378167a commit 9d56820

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a6ed60a8eb0626e5f84d0bdbb62c0b61219150d3
1+
54baa7997c7b0bbd456460ead6e051655ea43790

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,4 +623,4 @@ exports.useSyncExternalStore = function (
623623
exports.useTransition = function () {
624624
return ReactCurrentDispatcher.current.useTransition();
625625
};
626-
exports.version = "18.3.0-www-classic-810b328a";
626+
exports.version = "18.3.0-www-classic-29f3c7ed";

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ var createRootStrictEffectsByDefault = false;
141141
var enableLazyContextPropagation = false;
142142
var enableLegacyHidden = false;
143143
var enableAsyncActions = false;
144-
var alwaysThrottleRetries = true; // Flow magic to verify the exports of this file match the original version.
144+
var alwaysThrottleRetries = true;
145145

146146
var FunctionComponent = 0;
147147
var ClassComponent = 1;
@@ -24359,7 +24359,7 @@ function createFiberRoot(
2435924359
return root;
2436024360
}
2436124361

24362-
var ReactVersion = "18.3.0-www-classic-810b328a";
24362+
var ReactVersion = "18.3.0-www-classic-29f3c7ed";
2436324363

2436424364
// Might add PROFILE later.
2436524365

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ var createRootStrictEffectsByDefault = false;
141141
var enableLazyContextPropagation = false;
142142
var enableLegacyHidden = false;
143143
var enableAsyncActions = false;
144-
var alwaysThrottleRetries = true; // Flow magic to verify the exports of this file match the original version.
144+
var alwaysThrottleRetries = true;
145145

146146
var FunctionComponent = 0;
147147
var ClassComponent = 1;
@@ -24359,7 +24359,7 @@ function createFiberRoot(
2435924359
return root;
2436024360
}
2436124361

24362-
var ReactVersion = "18.3.0-www-modern-318a7f7c";
24362+
var ReactVersion = "18.3.0-www-modern-d3a76be5";
2436324363

2436424364
// Might add PROFILE later.
2436524365

0 commit comments

Comments
 (0)