Skip to content

Commit

Permalink
Fix mistaken "react-server" condition (#28835)
Browse files Browse the repository at this point in the history
This is a Fizz server.

DiffTrain build for commit ed40236.
  • Loading branch information
kassens committed Apr 12, 2024
1 parent 97eab46 commit a7e51aa
Show file tree
Hide file tree
Showing 17 changed files with 3,769 additions and 3,518 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,78 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<26fbc8eee6902991682d526f8537439c>>
* @generated SignedSource<<881038bf21de122675cb4eb0358c5cfd>>
*/

"use strict";
var dynamicFlagsUntyped = require("ReactNativeInternalFeatureFlags"),
React = require("react"),
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
disableDefaultPropsExceptForClasses =
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
function formatProdErrorMessage(code) {
var url = "https://react.dev/errors/" + code;
if (1 < arguments.length) {
url += "?args[]=" + encodeURIComponent(arguments[1]);
for (var i = 2; i < arguments.length; i++)
url += "&args[]=" + encodeURIComponent(arguments[i]);
}
return (
"Minified React error #" +
code +
"; visit " +
url +
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
);
}
var disableDefaultPropsExceptForClasses =
dynamicFlagsUntyped.disableDefaultPropsExceptForClasses,
hasOwnProperty = Object.prototype.hasOwnProperty,
ReactCurrentOwner =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
ReactSharedInternals =
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
function jsxProd(type, config, maybeKey) {
var propName,
props = {},
key = null,
var key = null,
ref = null;
void 0 !== maybeKey && (key = "" + maybeKey);
void 0 !== config.key && (key = "" + config.key);
void 0 !== config.ref && (ref = config.ref);
for (propName in config)
hasOwnProperty.call(config, propName) &&
"key" !== propName &&
if (void 0 !== config.ref)
a: {
(ref = config.ref), (maybeKey = ReactSharedInternals.owner);
if ("string" !== typeof ref)
if ("number" === typeof ref || "boolean" === typeof ref) ref = "" + ref;
else break a;
var callback = stringRefAsCallbackRef.bind(null, ref, type, maybeKey);
callback.__stringRef = ref;
callback.__type = type;
callback.__owner = maybeKey;
ref = callback;
}
maybeKey = {};
for (var propName in config)
"key" !== propName &&
"ref" !== propName &&
(props[propName] = config[propName]);
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps)
for (propName in ((config = type.defaultProps), config))
void 0 === props[propName] && (props[propName] = config[propName]);
(maybeKey[propName] = config[propName]);
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) {
config = type.defaultProps;
for (var propName$0 in config)
void 0 === maybeKey[propName$0] &&
(maybeKey[propName$0] = config[propName$0]);
}
return {
$$typeof: REACT_ELEMENT_TYPE,
type: type,
key: key,
ref: ref,
props: props,
_owner: ReactCurrentOwner.current
props: maybeKey,
_owner: ReactSharedInternals.owner
};
}
function stringRefAsCallbackRef(stringRef, type, owner, value) {
if (!owner) throw Error(formatProdErrorMessage(290, stringRef));
if (1 !== owner.tag) throw Error(formatProdErrorMessage(309));
type = owner.stateNode;
if (!type) throw Error(formatProdErrorMessage(147, stringRef));
type = type.refs;
null === value ? delete type[stringRef] : (type[stringRef] = value);
}
exports.Fragment = REACT_FRAGMENT_TYPE;
exports.jsx = jsxProd;
exports.jsxs = jsxProd;
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,78 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<26fbc8eee6902991682d526f8537439c>>
* @generated SignedSource<<881038bf21de122675cb4eb0358c5cfd>>
*/

"use strict";
var dynamicFlagsUntyped = require("ReactNativeInternalFeatureFlags"),
React = require("react"),
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
disableDefaultPropsExceptForClasses =
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
function formatProdErrorMessage(code) {
var url = "https://react.dev/errors/" + code;
if (1 < arguments.length) {
url += "?args[]=" + encodeURIComponent(arguments[1]);
for (var i = 2; i < arguments.length; i++)
url += "&args[]=" + encodeURIComponent(arguments[i]);
}
return (
"Minified React error #" +
code +
"; visit " +
url +
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
);
}
var disableDefaultPropsExceptForClasses =
dynamicFlagsUntyped.disableDefaultPropsExceptForClasses,
hasOwnProperty = Object.prototype.hasOwnProperty,
ReactCurrentOwner =
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
ReactSharedInternals =
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
function jsxProd(type, config, maybeKey) {
var propName,
props = {},
key = null,
var key = null,
ref = null;
void 0 !== maybeKey && (key = "" + maybeKey);
void 0 !== config.key && (key = "" + config.key);
void 0 !== config.ref && (ref = config.ref);
for (propName in config)
hasOwnProperty.call(config, propName) &&
"key" !== propName &&
if (void 0 !== config.ref)
a: {
(ref = config.ref), (maybeKey = ReactSharedInternals.owner);
if ("string" !== typeof ref)
if ("number" === typeof ref || "boolean" === typeof ref) ref = "" + ref;
else break a;
var callback = stringRefAsCallbackRef.bind(null, ref, type, maybeKey);
callback.__stringRef = ref;
callback.__type = type;
callback.__owner = maybeKey;
ref = callback;
}
maybeKey = {};
for (var propName in config)
"key" !== propName &&
"ref" !== propName &&
(props[propName] = config[propName]);
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps)
for (propName in ((config = type.defaultProps), config))
void 0 === props[propName] && (props[propName] = config[propName]);
(maybeKey[propName] = config[propName]);
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) {
config = type.defaultProps;
for (var propName$0 in config)
void 0 === maybeKey[propName$0] &&
(maybeKey[propName$0] = config[propName$0]);
}
return {
$$typeof: REACT_ELEMENT_TYPE,
type: type,
key: key,
ref: ref,
props: props,
_owner: ReactCurrentOwner.current
props: maybeKey,
_owner: ReactSharedInternals.owner
};
}
function stringRefAsCallbackRef(stringRef, type, owner, value) {
if (!owner) throw Error(formatProdErrorMessage(290, stringRef));
if (1 !== owner.tag) throw Error(formatProdErrorMessage(309));
type = owner.stateNode;
if (!type) throw Error(formatProdErrorMessage(147, stringRef));
type = type.refs;
null === value ? delete type[stringRef] : (type[stringRef] = value);
}
exports.Fragment = REACT_FRAGMENT_TYPE;
exports.jsx = jsxProd;
exports.jsxs = jsxProd;
Loading

0 comments on commit a7e51aa

Please sign in to comment.