Skip to content

Commit

Permalink
Set enableFastJSX flag to true (#30343)
Browse files Browse the repository at this point in the history
When these to diffs are landed, we can merge this

- [x] D59772879
- [x] D59773043

DiffTrain build for commit d025ddd.
  • Loading branch information
kassens committed Jul 22, 2024
1 parent 716cb62 commit 24e446f
Show file tree
Hide file tree
Showing 18 changed files with 64 additions and 114 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.0.0-native-fb-792f1921-20240722
19.0.0-native-fb-d025ddd3-20240722
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<293fd5951a2216d203ca5319eaf57618>>
* @generated SignedSource<<b3e07d972033dc804acc27c830ed0a35>>
*/

"use strict";
Expand Down Expand Up @@ -15080,14 +15080,14 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-native-fb-792f1921-20240722"
reconcilerVersion: "19.0.0-native-fb-d025ddd3-20240722"
});
})({
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 1,
version: "19.0.0-native-fb-792f1921-20240722",
version: "19.0.0-native-fb-d025ddd3-20240722",
rendererPackageName: "react-test-renderer"
});
exports._Scheduler = Scheduler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<1021997af06902d69a4f0421ae02a604>>
* @generated SignedSource<<3ace9ccd69b129cdf0dc2e8cf8a5d9d3>>
*/

"use strict";
Expand Down Expand Up @@ -9335,7 +9335,7 @@ var devToolsConfig$jscomp$inline_1034 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "19.0.0-native-fb-792f1921-20240722",
version: "19.0.0-native-fb-d025ddd3-20240722",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1223 = {
Expand Down Expand Up @@ -9366,7 +9366,7 @@ var internals$jscomp$inline_1223 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-792f1921-20240722"
reconcilerVersion: "19.0.0-native-fb-d025ddd3-20240722"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1224 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<12b4caa1ae0f38647d345a595851c2f9>>
* @generated SignedSource<<d093be3b8d71535c7436935a2ad7a27b>>
*/

"use strict";
Expand Down Expand Up @@ -9955,7 +9955,7 @@ var devToolsConfig$jscomp$inline_1117 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "19.0.0-native-fb-792f1921-20240722",
version: "19.0.0-native-fb-d025ddd3-20240722",
rendererPackageName: "react-test-renderer"
};
(function (internals) {
Expand Down Expand Up @@ -9999,7 +9999,7 @@ var devToolsConfig$jscomp$inline_1117 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-native-fb-792f1921-20240722"
reconcilerVersion: "19.0.0-native-fb-d025ddd3-20240722"
});
exports._Scheduler = Scheduler;
exports.act = act;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<0caeac94fb93386eb1271e70950fddab>>
* @generated SignedSource<<ab5f623e7bc987c78600953a2d5d707d>>
*/

"use strict";
Expand Down Expand Up @@ -526,11 +526,7 @@ __DEV__ &&
hasValidKey(config) &&
(checkKeyStringCoercion(config.key), (children = "" + config.key));
hasValidRef(config);
if (
(!enableFastJSXWithoutStringRefs &&
(!enableFastJSXWithStringRefs || "ref" in config)) ||
"key" in config
) {
if ("key" in config) {
maybeKey = {};
for (var propName in config)
"key" !== propName && (maybeKey[propName] = config[propName]);
Expand Down Expand Up @@ -633,7 +629,6 @@ __DEV__ &&
return info;
}
var React = require("react"),
enableFastJSX = require("ReactNativeInternalFeatureFlags").enableFastJSX,
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
Expand Down Expand Up @@ -674,9 +669,7 @@ __DEV__ &&
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
specialPropKeyWarningShown;
var didWarnAboutElementRef = {};
var enableFastJSXWithStringRefs = enableFastJSX && !0,
enableFastJSXWithoutStringRefs = enableFastJSXWithStringRefs && !0,
didWarnAboutKeySpread = {},
var didWarnAboutKeySpread = {},
ownerHasKeyUseWarning = {};
exports.Fragment = REACT_FRAGMENT_TYPE;
exports.jsxDEV = function (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ab96f617c43c6ee6c335cb94e85f4bb4>>
* @generated SignedSource<<31c9222f86ee2d022abecb8d71e7a6e2>>
*/

"use strict";
Expand Down Expand Up @@ -526,11 +526,7 @@ __DEV__ &&
hasValidKey(config) &&
(checkKeyStringCoercion(config.key), (children = "" + config.key));
hasValidRef(config);
if (
(!enableFastJSXWithoutStringRefs &&
(!enableFastJSXWithStringRefs || "ref" in config)) ||
"key" in config
) {
if ("key" in config) {
maybeKey = {};
for (var propName in config)
"key" !== propName && (maybeKey[propName] = config[propName]);
Expand Down Expand Up @@ -633,7 +629,6 @@ __DEV__ &&
return info;
}
var React = require("react"),
enableFastJSX = require("ReactNativeInternalFeatureFlags").enableFastJSX,
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
Expand Down Expand Up @@ -674,9 +669,7 @@ __DEV__ &&
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
specialPropKeyWarningShown;
var didWarnAboutElementRef = {};
var enableFastJSXWithStringRefs = enableFastJSX && !0,
enableFastJSXWithoutStringRefs = enableFastJSXWithStringRefs && !0,
didWarnAboutKeySpread = {},
var didWarnAboutKeySpread = {},
ownerHasKeyUseWarning = {};
exports.Fragment = REACT_FRAGMENT_TYPE;
exports.jsx = function (type, config, maybeKey, source, self) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,17 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8027b340b0802f1154774d36f8da90fd>>
* @generated SignedSource<<f4d570e4af3e6311db8ba29ccc9dac66>>
*/

"use strict";
var enableFastJSX = require("ReactNativeInternalFeatureFlags").enableFastJSX,
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
enableFastJSXWithStringRefs = enableFastJSX && !0,
enableFastJSXWithoutStringRefs = enableFastJSXWithStringRefs && !0;
var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
function jsxProd(type, config, maybeKey) {
var key = null;
void 0 !== maybeKey && (key = "" + maybeKey);
void 0 !== config.key && (key = "" + config.key);
if (
(!enableFastJSXWithoutStringRefs &&
(!enableFastJSXWithStringRefs || "ref" in config)) ||
"key" in config
) {
if ("key" in config) {
maybeKey = {};
for (var propName in config)
"key" !== propName && (maybeKey[propName] = config[propName]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,17 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8027b340b0802f1154774d36f8da90fd>>
* @generated SignedSource<<f4d570e4af3e6311db8ba29ccc9dac66>>
*/

"use strict";
var enableFastJSX = require("ReactNativeInternalFeatureFlags").enableFastJSX,
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
enableFastJSXWithStringRefs = enableFastJSX && !0,
enableFastJSXWithoutStringRefs = enableFastJSXWithStringRefs && !0;
var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
function jsxProd(type, config, maybeKey) {
var key = null;
void 0 !== maybeKey && (key = "" + maybeKey);
void 0 !== config.key && (key = "" + config.key);
if (
(!enableFastJSXWithoutStringRefs &&
(!enableFastJSXWithStringRefs || "ref" in config)) ||
"key" in config
) {
if ("key" in config) {
maybeKey = {};
for (var propName in config)
"key" !== propName && (maybeKey[propName] = config[propName]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<61f06d7d7ba18a44d1a9e5f62d952d8f>>
* @generated SignedSource<<f65556f277c0ddb5de72662cf31257eb>>
*/

"use strict";
Expand Down Expand Up @@ -589,11 +589,7 @@ __DEV__ &&
hasValidKey(config) &&
(checkKeyStringCoercion(config.key), (children = "" + config.key));
hasValidRef(config);
if (
(!enableFastJSXWithoutStringRefs &&
(!enableFastJSXWithStringRefs || "ref" in config)) ||
"key" in config
) {
if ("key" in config) {
maybeKey = {};
for (var propName in config)
"key" !== propName && (maybeKey[propName] = config[propName]);
Expand Down Expand Up @@ -1023,9 +1019,7 @@ __DEV__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
var enableFastJSX =
require("ReactNativeInternalFeatureFlags").enableFastJSX,
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
var REACT_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
Expand Down Expand Up @@ -1132,9 +1126,7 @@ __DEV__ &&
specialPropKeyWarningShown,
didWarnAboutOldJSXRuntime;
var didWarnAboutElementRef = {};
var enableFastJSXWithStringRefs = enableFastJSX && !0,
enableFastJSXWithoutStringRefs = enableFastJSXWithStringRefs && !0,
didWarnAboutKeySpread = {},
var didWarnAboutKeySpread = {},
ownerHasKeyUseWarning = {},
didWarnAboutMaps = !1,
userProvidedKeyEscapeRegex = /\/+/g,
Expand Down Expand Up @@ -1707,7 +1699,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-native-fb-792f1921-20240722";
exports.version = "19.0.0-native-fb-d025ddd3-20240722";
"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,12 +7,11 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<495b76f9066c31cda14cf8670b4adb6a>>
* @generated SignedSource<<2353fd61ee1b67bde9e8cd1746ce037f>>
*/

"use strict";
var enableFastJSX = require("ReactNativeInternalFeatureFlags").enableFastJSX,
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
Expand Down Expand Up @@ -82,9 +81,7 @@ assign(pureComponentPrototype, Component.prototype);
pureComponentPrototype.isPureReactComponent = !0;
var isArrayImpl = Array.isArray,
ReactSharedInternals = { H: null, A: null, T: null, S: null },
hasOwnProperty = Object.prototype.hasOwnProperty,
enableFastJSXWithStringRefs = enableFastJSX && !0,
enableFastJSXWithoutStringRefs = enableFastJSXWithStringRefs && !0;
hasOwnProperty = Object.prototype.hasOwnProperty;
function ReactElement(type, key, _ref, self, source, owner, props) {
_ref = props.ref;
return {
Expand All @@ -99,11 +96,7 @@ function jsxProd(type, config, maybeKey) {
var key = null;
void 0 !== maybeKey && (key = "" + maybeKey);
void 0 !== config.key && (key = "" + config.key);
if (
(!enableFastJSXWithoutStringRefs &&
(!enableFastJSXWithStringRefs || "ref" in config)) ||
"key" in config
) {
if ("key" in config) {
maybeKey = {};
for (var propName in config)
"key" !== propName && (maybeKey[propName] = config[propName]);
Expand Down Expand Up @@ -583,4 +576,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-native-fb-792f1921-20240722";
exports.version = "19.0.0-native-fb-d025ddd3-20240722";
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ae79f73ee8e5e79ddc549b32fa35854b>>
* @generated SignedSource<<4648b74319af5ed745e1bda78613e70a>>
*/

"use strict";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
var enableFastJSX = require("ReactNativeInternalFeatureFlags").enableFastJSX,
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
Expand Down Expand Up @@ -86,9 +85,7 @@ assign(pureComponentPrototype, Component.prototype);
pureComponentPrototype.isPureReactComponent = !0;
var isArrayImpl = Array.isArray,
ReactSharedInternals = { H: null, A: null, T: null, S: null },
hasOwnProperty = Object.prototype.hasOwnProperty,
enableFastJSXWithStringRefs = enableFastJSX && !0,
enableFastJSXWithoutStringRefs = enableFastJSXWithStringRefs && !0;
hasOwnProperty = Object.prototype.hasOwnProperty;
function ReactElement(type, key, _ref, self, source, owner, props) {
_ref = props.ref;
return {
Expand All @@ -103,11 +100,7 @@ function jsxProd(type, config, maybeKey) {
var key = null;
void 0 !== maybeKey && (key = "" + maybeKey);
void 0 !== config.key && (key = "" + config.key);
if (
(!enableFastJSXWithoutStringRefs &&
(!enableFastJSXWithStringRefs || "ref" in config)) ||
"key" in config
) {
if ("key" in config) {
maybeKey = {};
for (var propName in config)
"key" !== propName && (maybeKey[propName] = config[propName]);
Expand Down Expand Up @@ -587,7 +580,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-native-fb-792f1921-20240722";
exports.version = "19.0.0-native-fb-d025ddd3-20240722";
"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
@@ -1 +1 @@
792f1921145e51bd06b836ffa0a16ecc39c8ee82
d025ddd3b954dfc52ad7e6a036913946a8ca2644
Loading

0 comments on commit 24e446f

Please sign in to comment.