Attempt to fix diff syncing for Meta (#28801)

#28796 broke Meta's PR syncing tool, hoping this fixes it

DiffTrain build for [64c8d2d45d](https://github.com/facebook/react/commit/64c8d2d45d49dbb2f59ea23e5e739eb79e124abc)
This commit is contained in:
josephsavona
2024-04-09 21:10:03 +00:00
parent e992aaabe5
commit a85aedcb36
9 changed files with 35 additions and 30 deletions
+1 -1
View File
@@ -1 +1 @@
7f93cb41c8e1352eec158e508bc612025425266d
64c8d2d45d49dbb2f59ea23e5e739eb79e124abc
+3 -3
View File
@@ -24,7 +24,7 @@ if (__DEV__) {
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = "19.0.0-www-classic-e729f4fd";
var ReactVersion = "19.0.0-www-classic-8d3386cf";
// ATTENTION
// When adding new symbols to this file,
@@ -2041,6 +2041,8 @@ if (__DEV__) {
if (config != null) {
if (hasValidRef(config)) {
owner = ReactSharedInternals.owner;
if (!enableRefAsProp) {
// Silently steal the ref from the parent.
ref = config.ref;
@@ -2049,8 +2051,6 @@ if (__DEV__) {
ref = coerceStringRef(ref, owner, element.type);
}
}
owner = ReactSharedInternals.owner;
}
if (hasValidKey(config)) {
+3 -3
View File
@@ -24,7 +24,7 @@ if (__DEV__) {
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = "19.0.0-www-modern-e655a09b";
var ReactVersion = "19.0.0-www-modern-337e1422";
// ATTENTION
// When adding new symbols to this file,
@@ -2043,6 +2043,8 @@ if (__DEV__) {
if (config != null) {
if (hasValidRef(config)) {
owner = ReactSharedInternals.owner;
if (!enableRefAsProp) {
// Silently steal the ref from the parent.
ref = config.ref;
@@ -2051,8 +2053,6 @@ if (__DEV__) {
ref = coerceStringRef(ref, owner, element.type);
}
}
owner = ReactSharedInternals.owner;
}
if (hasValidKey(config)) {
+5 -4
View File
@@ -457,9 +457,10 @@ exports.cloneElement = function (element, config, children) {
owner = element._owner;
if (null != config) {
void 0 !== config.ref &&
(enableRefAsProp ||
((ref = config.ref), (ref = coerceStringRef(ref, owner, element.type))),
(owner = ReactSharedInternals.owner));
((owner = ReactSharedInternals.owner),
enableRefAsProp ||
((ref = config.ref),
(ref = coerceStringRef(ref, owner, element.type))));
void 0 !== config.key && (key = "" + config.key);
if (
!disableDefaultPropsExceptForClasses &&
@@ -690,4 +691,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-4b82ed06";
exports.version = "19.0.0-www-classic-0eabe82a";
+5 -4
View File
@@ -457,9 +457,10 @@ exports.cloneElement = function (element, config, children) {
owner = element._owner;
if (null != config) {
void 0 !== config.ref &&
(enableRefAsProp ||
((ref = config.ref), (ref = coerceStringRef(ref, owner, element.type))),
(owner = ReactSharedInternals.owner));
((owner = ReactSharedInternals.owner),
enableRefAsProp ||
((ref = config.ref),
(ref = coerceStringRef(ref, owner, element.type))));
void 0 !== config.key && (key = "" + config.key);
if (
!disableDefaultPropsExceptForClasses &&
@@ -690,4 +691,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-4b82ed06";
exports.version = "19.0.0-www-modern-0eabe82a";
@@ -461,9 +461,10 @@ exports.cloneElement = function (element, config, children) {
owner = element._owner;
if (null != config) {
void 0 !== config.ref &&
(enableRefAsProp ||
((ref = config.ref), (ref = coerceStringRef(ref, owner, element.type))),
(owner = ReactSharedInternals.owner));
((owner = ReactSharedInternals.owner),
enableRefAsProp ||
((ref = config.ref),
(ref = coerceStringRef(ref, owner, element.type))));
void 0 !== config.key && (key = "" + config.key);
if (
!disableDefaultPropsExceptForClasses &&
@@ -694,7 +695,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-1e341207";
exports.version = "19.0.0-www-classic-aab80d0a";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -461,9 +461,10 @@ exports.cloneElement = function (element, config, children) {
owner = element._owner;
if (null != config) {
void 0 !== config.ref &&
(enableRefAsProp ||
((ref = config.ref), (ref = coerceStringRef(ref, owner, element.type))),
(owner = ReactSharedInternals.owner));
((owner = ReactSharedInternals.owner),
enableRefAsProp ||
((ref = config.ref),
(ref = coerceStringRef(ref, owner, element.type))));
void 0 !== config.key && (key = "" + config.key);
if (
!disableDefaultPropsExceptForClasses &&
@@ -694,7 +695,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-1e341207";
exports.version = "19.0.0-www-modern-aab80d0a";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1767,6 +1767,8 @@ if (__DEV__) {
if (config != null) {
if (hasValidRef(config)) {
owner = ReactSharedInternals.owner;
if (!enableRefAsProp) {
// Silently steal the ref from the parent.
ref = config.ref;
@@ -1775,8 +1777,6 @@ if (__DEV__) {
ref = coerceStringRef(ref, owner, element.type);
}
}
owner = ReactSharedInternals.owner;
}
if (hasValidKey(config)) {
@@ -3083,7 +3083,7 @@ if (__DEV__) {
function noop() {}
var ReactVersion = "19.0.0-www-modern-f42736d9";
var ReactVersion = "19.0.0-www-modern-a3494f1d";
// Patch fetch
var Children = {
@@ -439,9 +439,10 @@ exports.cloneElement = function (element, config, children) {
owner = element._owner;
if (null != config) {
void 0 !== config.ref &&
(enableRefAsProp ||
((ref = config.ref), (ref = coerceStringRef(ref, owner, element.type))),
(owner = ReactSharedInternals.owner));
((owner = ReactSharedInternals.owner),
enableRefAsProp ||
((ref = config.ref),
(ref = coerceStringRef(ref, owner, element.type))));
void 0 !== config.key && (key = "" + config.key);
if (
!disableDefaultPropsExceptForClasses &&
@@ -587,4 +588,4 @@ exports.useId = function () {
exports.useMemo = function (create, deps) {
return ReactSharedInternals.H.useMemo(create, deps);
};
exports.version = "19.0.0-www-modern-bd5b5e6e";
exports.version = "19.0.0-www-modern-3ff8d311";