Skip to content

Commit 4417e23

Browse files
committed
[flags] disableLegacyMode in native-fb (facebook#35120)
this is failing test too because we need the legacy mode in the react package until we fix the tests DiffTrain build for [bbe3f4d](facebook@bbe3f4d)
1 parent e1ef247 commit 4417e23

File tree

21 files changed

+9311
-7068
lines changed

21 files changed

+9311
-7068
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.3.0-native-fb-5e94655c-20251111
1+
19.3.0-native-fb-bbe3f4d3-20251112

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<b428f8222d340988ff7df730114f6fb2>>
10+
* @generated SignedSource<<aa23f659f37c73b1c34cc3464d2eddd6>>
1111
*/
1212

1313
"use strict";
@@ -126,20 +126,10 @@ __DEV__ &&
126126
throw Error("Target container is not a DOM element.");
127127
return createPortal$1(children, container, null, key);
128128
};
129-
exports.flushSync = function (fn) {
130-
var previousTransition = ReactSharedInternals.T,
131-
previousUpdatePriority = Internals.p;
132-
try {
133-
if (((ReactSharedInternals.T = null), (Internals.p = 2), fn))
134-
return fn();
135-
} finally {
136-
(ReactSharedInternals.T = previousTransition),
137-
(Internals.p = previousUpdatePriority),
138-
Internals.d.f() &&
139-
console.error(
140-
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
141-
);
142-
}
129+
exports.flushSync = function () {
130+
throw Error(
131+
"Expected this build of React to not support legacy mode but it does. This is a bug in React."
132+
);
143133
};
144134
exports.preconnect = function (href, options) {
145135
"string" === typeof href && href
@@ -414,5 +404,5 @@ __DEV__ &&
414404
exports.useFormStatus = function () {
415405
return resolveDispatcher().useHostTransitionStatus();
416406
};
417-
exports.version = "19.3.0-native-fb-5e94655c-20251111";
407+
exports.version = "19.3.0-native-fb-bbe3f4d3-20251112";
418408
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<30338147969672593f4a00903d3bac77>>
10+
* @generated SignedSource<<b9eb4766d44eb1670c305bf7dcac506e>>
1111
*/
1212

1313
"use strict";
@@ -78,16 +78,10 @@ exports.createPortal = function (children, container) {
7878
throw Error(formatProdErrorMessage(299));
7979
return createPortal$1(children, container, null, key);
8080
};
81-
exports.flushSync = function (fn) {
82-
var previousTransition = ReactSharedInternals.T,
83-
previousUpdatePriority = Internals.p;
84-
try {
85-
if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();
86-
} finally {
87-
(ReactSharedInternals.T = previousTransition),
88-
(Internals.p = previousUpdatePriority),
89-
Internals.d.f();
90-
}
81+
exports.flushSync = function () {
82+
throw Error(
83+
"Expected this build of React to not support legacy mode but it does. This is a bug in React."
84+
);
9185
};
9286
exports.preconnect = function (href, options) {
9387
"string" === typeof href &&
@@ -209,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
209203
exports.useFormStatus = function () {
210204
return ReactSharedInternals.H.useHostTransitionStatus();
211205
};
212-
exports.version = "19.3.0-native-fb-5e94655c-20251111";
206+
exports.version = "19.3.0-native-fb-bbe3f4d3-20251112";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<30338147969672593f4a00903d3bac77>>
10+
* @generated SignedSource<<b9eb4766d44eb1670c305bf7dcac506e>>
1111
*/
1212

1313
"use strict";
@@ -78,16 +78,10 @@ exports.createPortal = function (children, container) {
7878
throw Error(formatProdErrorMessage(299));
7979
return createPortal$1(children, container, null, key);
8080
};
81-
exports.flushSync = function (fn) {
82-
var previousTransition = ReactSharedInternals.T,
83-
previousUpdatePriority = Internals.p;
84-
try {
85-
if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();
86-
} finally {
87-
(ReactSharedInternals.T = previousTransition),
88-
(Internals.p = previousUpdatePriority),
89-
Internals.d.f();
90-
}
81+
exports.flushSync = function () {
82+
throw Error(
83+
"Expected this build of React to not support legacy mode but it does. This is a bug in React."
84+
);
9185
};
9286
exports.preconnect = function (href, options) {
9387
"string" === typeof href &&
@@ -209,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
209203
exports.useFormStatus = function () {
210204
return ReactSharedInternals.H.useHostTransitionStatus();
211205
};
212-
exports.version = "19.3.0-native-fb-5e94655c-20251111";
206+
exports.version = "19.3.0-native-fb-bbe3f4d3-20251112";

0 commit comments

Comments
 (0)