Skip to content

Commit

Permalink
Fork Scheduler feature flags for native-fb (#31859)
Browse files Browse the repository at this point in the history
#31787 introduces an experimental scheduler flag:
`enableAlwaysYieldScheduler`, which is turned off for www. There wasn't
a SchedulerFeatureFlags fork for native-fb, so the experimental change
was enabled in the Scheduler-dev build there which causes test failures
and is blocking the sync.

#31805 introduces another scheduler flag `enableRequestPaint`, which is
set as a `__VARIANT__` on www. I've set this to `true` here to preserve
the existing behavior. We can follow up with dynamic flags for native-fb
after unblocking the sync.

DiffTrain build for [bd76ce5](bd76ce5)
  • Loading branch information
jackpope committed Dec 19, 2024
1 parent 49240b5 commit 663e50c
Show file tree
Hide file tree
Showing 22 changed files with 85 additions and 85 deletions.
2 changes: 1 addition & 1 deletion compiled-rn/VERSION_NATIVE_FB
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19.1.0-native-fb-8f92ea46-20241219
19.1.0-native-fb-bd76ce54-20241219
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b8c62b615d7881259f55b867dce0e772>>
* @generated SignedSource<<6a21bda7f462f4af1bef1d4e059c2781>>
*/

"use strict";
Expand Down Expand Up @@ -420,5 +420,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-8f92ea46-20241219";
exports.version = "19.1.0-native-fb-bd76ce54-20241219";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<829a37baf5fa7ec9b5a31087efb4ca68>>
* @generated SignedSource<<1f274bddb9fac86b6e9d48affbbf7a52>>
*/

"use strict";
Expand Down Expand Up @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-8f92ea46-20241219";
exports.version = "19.1.0-native-fb-bd76ce54-20241219";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<829a37baf5fa7ec9b5a31087efb4ca68>>
* @generated SignedSource<<1f274bddb9fac86b6e9d48affbbf7a52>>
*/

"use strict";
Expand Down Expand Up @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-8f92ea46-20241219";
exports.version = "19.1.0-native-fb-bd76ce54-20241219";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<19f8e33240ba37309b154ee88e74379c>>
* @generated SignedSource<<330c9a6e5f20e4afb43ad094e73ff578>>
*/

/*
Expand Down Expand Up @@ -25875,11 +25875,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-native-fb-8f92ea46-20241219" !== isomorphicReactPackageVersion)
if ("19.1.0-native-fb-bd76ce54-20241219" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-native-fb-8f92ea46-20241219\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-native-fb-bd76ce54-20241219\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -25916,10 +25916,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-native-fb-8f92ea46-20241219",
version: "19.1.0-native-fb-bd76ce54-20241219",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-8f92ea46-20241219"
reconcilerVersion: "19.1.0-native-fb-bd76ce54-20241219"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -26065,5 +26065,5 @@ __DEV__ &&
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.1.0-native-fb-8f92ea46-20241219";
exports.version = "19.1.0-native-fb-bd76ce54-20241219";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<33d9e63d97f9c013876f9be9f4fa52e7>>
* @generated SignedSource<<97b33de5ae7a4c1be97c2a0564bdf380>>
*/

/*
Expand Down Expand Up @@ -15892,14 +15892,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1727 = React.version;
if (
"19.1.0-native-fb-8f92ea46-20241219" !==
"19.1.0-native-fb-bd76ce54-20241219" !==
isomorphicReactPackageVersion$jscomp$inline_1727
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1727,
"19.1.0-native-fb-8f92ea46-20241219"
"19.1.0-native-fb-bd76ce54-20241219"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -15921,10 +15921,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2185 = {
bundleType: 0,
version: "19.1.0-native-fb-8f92ea46-20241219",
version: "19.1.0-native-fb-bd76ce54-20241219",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-8f92ea46-20241219"
reconcilerVersion: "19.1.0-native-fb-bd76ce54-20241219"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2186 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -16030,4 +16030,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.1.0-native-fb-8f92ea46-20241219";
exports.version = "19.1.0-native-fb-bd76ce54-20241219";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a0b958479fef2e66f3509e2239934ab8>>
* @generated SignedSource<<79e692d0162594c57932d52d33c4e1e7>>
*/

/*
Expand Down Expand Up @@ -16545,14 +16545,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1817 = React.version;
if (
"19.1.0-native-fb-8f92ea46-20241219" !==
"19.1.0-native-fb-bd76ce54-20241219" !==
isomorphicReactPackageVersion$jscomp$inline_1817
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1817,
"19.1.0-native-fb-8f92ea46-20241219"
"19.1.0-native-fb-bd76ce54-20241219"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -16574,10 +16574,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_1824 = {
bundleType: 0,
version: "19.1.0-native-fb-8f92ea46-20241219",
version: "19.1.0-native-fb-bd76ce54-20241219",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-8f92ea46-20241219",
reconcilerVersion: "19.1.0-native-fb-bd76ce54-20241219",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$293 = 0;
Expand Down Expand Up @@ -16698,4 +16698,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.1.0-native-fb-8f92ea46-20241219";
exports.version = "19.1.0-native-fb-bd76ce54-20241219";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<cb8235fd099e8ee73cc4df9e9e3490e6>>
* @generated SignedSource<<9dea6c36c6320947a3ecbf0f477f67e2>>
*/

/*
Expand Down Expand Up @@ -25936,11 +25936,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-native-fb-8f92ea46-20241219" !== isomorphicReactPackageVersion)
if ("19.1.0-native-fb-bd76ce54-20241219" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-native-fb-8f92ea46-20241219\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-native-fb-bd76ce54-20241219\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -25977,10 +25977,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-native-fb-8f92ea46-20241219",
version: "19.1.0-native-fb-bd76ce54-20241219",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-8f92ea46-20241219"
reconcilerVersion: "19.1.0-native-fb-bd76ce54-20241219"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -26442,7 +26442,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-8f92ea46-20241219";
exports.version = "19.1.0-native-fb-bd76ce54-20241219";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0f9e501c8b90d789101ee0b5607eae38>>
* @generated SignedSource<<cba81e83a885c85d655fd1f3c992367a>>
*/

/*
Expand Down Expand Up @@ -15903,14 +15903,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1728 = React.version;
if (
"19.1.0-native-fb-8f92ea46-20241219" !==
"19.1.0-native-fb-bd76ce54-20241219" !==
isomorphicReactPackageVersion$jscomp$inline_1728
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1728,
"19.1.0-native-fb-8f92ea46-20241219"
"19.1.0-native-fb-bd76ce54-20241219"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -15932,10 +15932,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2188 = {
bundleType: 0,
version: "19.1.0-native-fb-8f92ea46-20241219",
version: "19.1.0-native-fb-bd76ce54-20241219",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-8f92ea46-20241219"
reconcilerVersion: "19.1.0-native-fb-bd76ce54-20241219"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2189 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -16195,4 +16195,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-8f92ea46-20241219";
exports.version = "19.1.0-native-fb-bd76ce54-20241219";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<7c939834ad6ba0adcfc73c37a9009fd9>>
* @generated SignedSource<<d4c9a708de6921247414647706322db5>>
*/

/*
Expand Down Expand Up @@ -16560,14 +16560,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1818 = React.version;
if (
"19.1.0-native-fb-8f92ea46-20241219" !==
"19.1.0-native-fb-bd76ce54-20241219" !==
isomorphicReactPackageVersion$jscomp$inline_1818
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1818,
"19.1.0-native-fb-8f92ea46-20241219"
"19.1.0-native-fb-bd76ce54-20241219"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -16589,10 +16589,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_1825 = {
bundleType: 0,
version: "19.1.0-native-fb-8f92ea46-20241219",
version: "19.1.0-native-fb-bd76ce54-20241219",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-8f92ea46-20241219",
reconcilerVersion: "19.1.0-native-fb-bd76ce54-20241219",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$293 = 0;
Expand Down Expand Up @@ -16867,7 +16867,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-native-fb-8f92ea46-20241219";
exports.version = "19.1.0-native-fb-bd76ce54-20241219";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<9983d89f9b5e1b427095ed1c23a06d94>>
* @generated SignedSource<<8dc22d38b67d827e4bb5b7211c221544>>
*/

"use strict";
Expand Down Expand Up @@ -15531,10 +15531,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-native-fb-8f92ea46-20241219",
version: "19.1.0-native-fb-bd76ce54-20241219",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-8f92ea46-20241219"
reconcilerVersion: "19.1.0-native-fb-bd76ce54-20241219"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -15679,5 +15679,5 @@ __DEV__ &&
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.1.0-native-fb-8f92ea46-20241219";
exports.version = "19.1.0-native-fb-bd76ce54-20241219";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8b517b90121e9d7bba40b7c14a84a962>>
* @generated SignedSource<<55bcba1152e03184016895f58057acc7>>
*/

"use strict";
Expand Down Expand Up @@ -9720,10 +9720,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1460 = {
bundleType: 0,
version: "19.1.0-native-fb-8f92ea46-20241219",
version: "19.1.0-native-fb-bd76ce54-20241219",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-native-fb-8f92ea46-20241219"
reconcilerVersion: "19.1.0-native-fb-bd76ce54-20241219"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1461 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -9859,4 +9859,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.1.0-native-fb-8f92ea46-20241219";
exports.version = "19.1.0-native-fb-bd76ce54-20241219";
Loading

0 comments on commit 663e50c

Please sign in to comment.