diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js index 267ce9d755..8b333d5fd3 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js @@ -466,7 +466,8 @@ __DEV__ && } function warnIfStringRefCannotBeAutoConverted(config, self) { var owner; - "string" === typeof config.ref && + !disableStringRefs && + "string" === typeof config.ref && (owner = getOwner()) && self && owner.stateNode !== self && @@ -639,18 +640,23 @@ __DEV__ && (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey)); hasValidKey(config) && (checkKeyStringCoercion(config.key), (children = "" + config.key)); - hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, self); - if ("ref" in config || "key" in config) { + hasValidRef(config) && + (disableStringRefs || + warnIfStringRefCannotBeAutoConverted(config, self)); + if ( + (!enableFastJSXWithoutStringRefs && "ref" in config) || + "key" in config + ) { maybeKey = {}; for (var propName in config) "key" !== propName && - ("ref" === propName - ? (maybeKey.ref = coerceStringRef( + (disableStringRefs || "ref" !== propName + ? (maybeKey[propName] = config[propName]) + : (maybeKey.ref = coerceStringRef( config[propName], getOwner(), type - )) - : (maybeKey[propName] = config[propName])); + ))); } else maybeKey = config; if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) { config = type.defaultProps; @@ -756,6 +762,7 @@ __DEV__ && return info; } function coerceStringRef(mixedRef, owner, type) { + if (disableStringRefs) return mixedRef; if ("string" !== typeof mixedRef) if ("number" === typeof mixedRef || "boolean" === typeof mixedRef) willCoercionThrow(mixedRef) && @@ -774,44 +781,47 @@ __DEV__ && return callback; } function stringRefAsCallbackRef(stringRef, type, owner, value) { - if (!owner) - throw Error( - "Element ref was specified as a string (" + - stringRef + - ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." - ); - if (1 !== owner.tag) - throw Error( - "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" - ); - if ( - "function" !== typeof type || - (type.prototype && type.prototype.isReactComponent) - ) - (type = getComponentNameFromFiber(owner) || "Component"), - didWarnAboutStringRefs[type] || - (enableLogStringRefsProd && - enableLogStringRefsProd(type, stringRef), - error( - 'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref', - type, - stringRef - ), - (didWarnAboutStringRefs[type] = !0)); - owner = owner.stateNode; - if (!owner) - throw Error( - "Missing owner for string ref " + - stringRef + - ". This error is likely caused by a bug in React. Please file an issue." - ); - owner = owner.refs; - null === value ? delete owner[stringRef] : (owner[stringRef] = value); + if (!disableStringRefs) { + if (!owner) + throw Error( + "Element ref was specified as a string (" + + stringRef + + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." + ); + if (1 !== owner.tag) + throw Error( + "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" + ); + if ( + "function" !== typeof type || + (type.prototype && type.prototype.isReactComponent) + ) + (type = getComponentNameFromFiber(owner) || "Component"), + didWarnAboutStringRefs[type] || + (enableLogStringRefsProd && + enableLogStringRefsProd(type, stringRef), + error( + 'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref', + type, + stringRef + ), + (didWarnAboutStringRefs[type] = !0)); + owner = owner.stateNode; + if (!owner) + throw Error( + "Missing owner for string ref " + + stringRef + + ". This error is likely caused by a bug in React. Please file an issue." + ); + owner = owner.refs; + null === value ? delete owner[stringRef] : (owner[stringRef] = value); + } } var React = require("react"), dynamicFeatureFlags = require("ReactFeatureFlags"), disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, @@ -867,7 +877,8 @@ __DEV__ && specialPropKeyWarningShown; var didWarnAboutStringRefs = {}; var didWarnAboutElementRef = {}; - var didWarnAboutKeySpread = {}, + var enableFastJSXWithoutStringRefs = disableStringRefs, + didWarnAboutKeySpread = {}, ownerHasKeyUseWarning = {}; exports.Fragment = REACT_FRAGMENT_TYPE; exports.jsxDEV = function ( diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js index ab5fe6c28d..c227e584f6 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js @@ -463,7 +463,8 @@ __DEV__ && } function warnIfStringRefCannotBeAutoConverted(config, self) { var owner; - "string" === typeof config.ref && + !disableStringRefs && + "string" === typeof config.ref && (owner = getOwner()) && self && owner.stateNode !== self && @@ -636,18 +637,23 @@ __DEV__ && (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey)); hasValidKey(config) && (checkKeyStringCoercion(config.key), (children = "" + config.key)); - hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, self); - if ("ref" in config || "key" in config) { + hasValidRef(config) && + (disableStringRefs || + warnIfStringRefCannotBeAutoConverted(config, self)); + if ( + (!enableFastJSXWithoutStringRefs && "ref" in config) || + "key" in config + ) { maybeKey = {}; for (var propName in config) "key" !== propName && - ("ref" === propName - ? (maybeKey.ref = coerceStringRef( + (disableStringRefs || "ref" !== propName + ? (maybeKey[propName] = config[propName]) + : (maybeKey.ref = coerceStringRef( config[propName], getOwner(), type - )) - : (maybeKey[propName] = config[propName])); + ))); } else maybeKey = config; if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) { config = type.defaultProps; @@ -753,6 +759,7 @@ __DEV__ && return info; } function coerceStringRef(mixedRef, owner, type) { + if (disableStringRefs) return mixedRef; if ("string" !== typeof mixedRef) if ("number" === typeof mixedRef || "boolean" === typeof mixedRef) willCoercionThrow(mixedRef) && @@ -771,44 +778,47 @@ __DEV__ && return callback; } function stringRefAsCallbackRef(stringRef, type, owner, value) { - if (!owner) - throw Error( - "Element ref was specified as a string (" + - stringRef + - ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." - ); - if (1 !== owner.tag) - throw Error( - "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" - ); - if ( - "function" !== typeof type || - (type.prototype && type.prototype.isReactComponent) - ) - (type = getComponentNameFromFiber(owner) || "Component"), - didWarnAboutStringRefs[type] || - (enableLogStringRefsProd && - enableLogStringRefsProd(type, stringRef), - error( - 'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref', - type, - stringRef - ), - (didWarnAboutStringRefs[type] = !0)); - owner = owner.stateNode; - if (!owner) - throw Error( - "Missing owner for string ref " + - stringRef + - ". This error is likely caused by a bug in React. Please file an issue." - ); - owner = owner.refs; - null === value ? delete owner[stringRef] : (owner[stringRef] = value); + if (!disableStringRefs) { + if (!owner) + throw Error( + "Element ref was specified as a string (" + + stringRef + + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." + ); + if (1 !== owner.tag) + throw Error( + "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" + ); + if ( + "function" !== typeof type || + (type.prototype && type.prototype.isReactComponent) + ) + (type = getComponentNameFromFiber(owner) || "Component"), + didWarnAboutStringRefs[type] || + (enableLogStringRefsProd && + enableLogStringRefsProd(type, stringRef), + error( + 'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref', + type, + stringRef + ), + (didWarnAboutStringRefs[type] = !0)); + owner = owner.stateNode; + if (!owner) + throw Error( + "Missing owner for string ref " + + stringRef + + ". This error is likely caused by a bug in React. Please file an issue." + ); + owner = owner.refs; + null === value ? delete owner[stringRef] : (owner[stringRef] = value); + } } var React = require("react"), dynamicFeatureFlags = require("ReactFeatureFlags"), disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, @@ -863,7 +873,8 @@ __DEV__ && specialPropKeyWarningShown; var didWarnAboutStringRefs = {}; var didWarnAboutElementRef = {}; - var didWarnAboutKeySpread = {}, + var enableFastJSXWithoutStringRefs = disableStringRefs, + didWarnAboutKeySpread = {}, ownerHasKeyUseWarning = {}; exports.Fragment = REACT_FRAGMENT_TYPE; exports.jsxDEV = function ( diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 178dcfb6c0..5b96960b87 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -5636fad840942cfea80301d91e931a50c6370d19 +75dd053b5e83e8ae20e9f771bca7b95dba4ff881 diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 178dcfb6c0..5b96960b87 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -5636fad840942cfea80301d91e931a50c6370d19 +75dd053b5e83e8ae20e9f771bca7b95dba4ff881 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 6c5ec595b9..aa8160ebf4 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -553,7 +553,8 @@ __DEV__ && } function warnIfStringRefCannotBeAutoConverted(config, self) { var owner; - "string" === typeof config.ref && + !disableStringRefs && + "string" === typeof config.ref && (owner = getOwner()) && self && owner.stateNode !== self && @@ -701,18 +702,23 @@ __DEV__ && (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey)); hasValidKey(config) && (checkKeyStringCoercion(config.key), (children = "" + config.key)); - hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, self); - if ("ref" in config || "key" in config) { + hasValidRef(config) && + (disableStringRefs || + warnIfStringRefCannotBeAutoConverted(config, self)); + if ( + (!enableFastJSXWithoutStringRefs && "ref" in config) || + "key" in config + ) { maybeKey = {}; for (var propName in config) "key" !== propName && - ("ref" === propName - ? (maybeKey.ref = coerceStringRef( + (disableStringRefs || "ref" !== propName + ? (maybeKey[propName] = config[propName]) + : (maybeKey.ref = coerceStringRef( config[propName], getOwner(), type - )) - : (maybeKey[propName] = config[propName])); + ))); } else maybeKey = config; if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) { config = type.defaultProps; @@ -826,6 +832,7 @@ __DEV__ && return info; } function coerceStringRef(mixedRef, owner, type) { + if (disableStringRefs) return mixedRef; if ("string" !== typeof mixedRef) if ("number" === typeof mixedRef || "boolean" === typeof mixedRef) willCoercionThrow(mixedRef) && @@ -844,39 +851,41 @@ __DEV__ && return callback; } function stringRefAsCallbackRef(stringRef, type, owner, value) { - if (!owner) - throw Error( - "Element ref was specified as a string (" + - stringRef + - ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." - ); - if (1 !== owner.tag) - throw Error( - "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" - ); - if ( - "function" !== typeof type || - (type.prototype && type.prototype.isReactComponent) - ) - (type = getComponentNameFromFiber(owner) || "Component"), - didWarnAboutStringRefs[type] || - (enableLogStringRefsProd && - enableLogStringRefsProd(type, stringRef), - error$jscomp$0( - 'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref', - type, - stringRef - ), - (didWarnAboutStringRefs[type] = !0)); - owner = owner.stateNode; - if (!owner) - throw Error( - "Missing owner for string ref " + - stringRef + - ". This error is likely caused by a bug in React. Please file an issue." - ); - owner = owner.refs; - null === value ? delete owner[stringRef] : (owner[stringRef] = value); + if (!disableStringRefs) { + if (!owner) + throw Error( + "Element ref was specified as a string (" + + stringRef + + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." + ); + if (1 !== owner.tag) + throw Error( + "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" + ); + if ( + "function" !== typeof type || + (type.prototype && type.prototype.isReactComponent) + ) + (type = getComponentNameFromFiber(owner) || "Component"), + didWarnAboutStringRefs[type] || + (enableLogStringRefsProd && + enableLogStringRefsProd(type, stringRef), + error$jscomp$0( + 'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref', + type, + stringRef + ), + (didWarnAboutStringRefs[type] = !0)); + owner = owner.stateNode; + if (!owner) + throw Error( + "Missing owner for string ref " + + stringRef + + ". This error is likely caused by a bug in React. Please file an issue." + ); + owner = owner.refs; + null === value ? delete owner[stringRef] : (owner[stringRef] = value); + } } function escape(key) { var escaperLookup = { "=": "=0", ":": "=2" }; @@ -1201,6 +1210,7 @@ __DEV__ && var dynamicFeatureFlags = require("ReactFeatureFlags"), disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, @@ -1319,7 +1329,8 @@ __DEV__ && didWarnAboutOldJSXRuntime; var didWarnAboutStringRefs = {}; var didWarnAboutElementRef = {}; - var didWarnAboutKeySpread = {}, + var enableFastJSXWithoutStringRefs = disableStringRefs, + didWarnAboutKeySpread = {}, ownerHasKeyUseWarning = {}, didWarnAboutMaps = !1, userProvidedKeyEscapeRegex = /\/+/g, @@ -1570,13 +1581,13 @@ __DEV__ && (disableDefaultPropsExceptForClasses || void 0 !== config[propName] || void 0 === defaultProps - ? "ref" === propName - ? (props.ref = coerceStringRef( + ? disableStringRefs || "ref" !== propName + ? (props[propName] = config[propName]) + : (props.ref = coerceStringRef( config[propName], owner, element.type )) - : (props[propName] = config[propName]) : (props[propName] = defaultProps[propName])); } var propName = arguments.length - 2; @@ -1712,7 +1723,8 @@ __DEV__ && "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform" )), hasValidRef(config) && - warnIfStringRefCannotBeAutoConverted(config, config.__self), + (disableStringRefs || + warnIfStringRefCannotBeAutoConverted(config, config.__self)), hasValidKey(config) && (checkKeyStringCoercion(config.key), (typeString = "" + config.key)), config)) @@ -1720,9 +1732,9 @@ __DEV__ && "key" !== propName && "__self" !== propName && "__source" !== propName && - ("ref" === propName - ? (i.ref = coerceStringRef(config[propName], getOwner(), type)) - : (i[propName] = config[propName])); + (disableStringRefs || "ref" !== propName + ? (i[propName] = config[propName]) + : (i.ref = coerceStringRef(config[propName], getOwner(), type))); var childrenLength = arguments.length - 2; if (1 === childrenLength) i.children = children; else if (1 < childrenLength) { @@ -2005,7 +2017,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-classic-5636fad8-20241010"; + exports.version = "19.0.0-www-classic-75dd053b-20241014"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index e1084e8298..6b50ff7129 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -550,7 +550,8 @@ __DEV__ && } function warnIfStringRefCannotBeAutoConverted(config, self) { var owner; - "string" === typeof config.ref && + !disableStringRefs && + "string" === typeof config.ref && (owner = getOwner()) && self && owner.stateNode !== self && @@ -698,18 +699,23 @@ __DEV__ && (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey)); hasValidKey(config) && (checkKeyStringCoercion(config.key), (children = "" + config.key)); - hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, self); - if ("ref" in config || "key" in config) { + hasValidRef(config) && + (disableStringRefs || + warnIfStringRefCannotBeAutoConverted(config, self)); + if ( + (!enableFastJSXWithoutStringRefs && "ref" in config) || + "key" in config + ) { maybeKey = {}; for (var propName in config) "key" !== propName && - ("ref" === propName - ? (maybeKey.ref = coerceStringRef( + (disableStringRefs || "ref" !== propName + ? (maybeKey[propName] = config[propName]) + : (maybeKey.ref = coerceStringRef( config[propName], getOwner(), type - )) - : (maybeKey[propName] = config[propName])); + ))); } else maybeKey = config; if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) { config = type.defaultProps; @@ -823,6 +829,7 @@ __DEV__ && return info; } function coerceStringRef(mixedRef, owner, type) { + if (disableStringRefs) return mixedRef; if ("string" !== typeof mixedRef) if ("number" === typeof mixedRef || "boolean" === typeof mixedRef) willCoercionThrow(mixedRef) && @@ -841,39 +848,41 @@ __DEV__ && return callback; } function stringRefAsCallbackRef(stringRef, type, owner, value) { - if (!owner) - throw Error( - "Element ref was specified as a string (" + - stringRef + - ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." - ); - if (1 !== owner.tag) - throw Error( - "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" - ); - if ( - "function" !== typeof type || - (type.prototype && type.prototype.isReactComponent) - ) - (type = getComponentNameFromFiber(owner) || "Component"), - didWarnAboutStringRefs[type] || - (enableLogStringRefsProd && - enableLogStringRefsProd(type, stringRef), - error$jscomp$0( - 'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref', - type, - stringRef - ), - (didWarnAboutStringRefs[type] = !0)); - owner = owner.stateNode; - if (!owner) - throw Error( - "Missing owner for string ref " + - stringRef + - ". This error is likely caused by a bug in React. Please file an issue." - ); - owner = owner.refs; - null === value ? delete owner[stringRef] : (owner[stringRef] = value); + if (!disableStringRefs) { + if (!owner) + throw Error( + "Element ref was specified as a string (" + + stringRef + + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." + ); + if (1 !== owner.tag) + throw Error( + "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" + ); + if ( + "function" !== typeof type || + (type.prototype && type.prototype.isReactComponent) + ) + (type = getComponentNameFromFiber(owner) || "Component"), + didWarnAboutStringRefs[type] || + (enableLogStringRefsProd && + enableLogStringRefsProd(type, stringRef), + error$jscomp$0( + 'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref', + type, + stringRef + ), + (didWarnAboutStringRefs[type] = !0)); + owner = owner.stateNode; + if (!owner) + throw Error( + "Missing owner for string ref " + + stringRef + + ". This error is likely caused by a bug in React. Please file an issue." + ); + owner = owner.refs; + null === value ? delete owner[stringRef] : (owner[stringRef] = value); + } } function escape(key) { var escaperLookup = { "=": "=0", ":": "=2" }; @@ -1198,6 +1207,7 @@ __DEV__ && var dynamicFeatureFlags = require("ReactFeatureFlags"), disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, @@ -1315,7 +1325,8 @@ __DEV__ && didWarnAboutOldJSXRuntime; var didWarnAboutStringRefs = {}; var didWarnAboutElementRef = {}; - var didWarnAboutKeySpread = {}, + var enableFastJSXWithoutStringRefs = disableStringRefs, + didWarnAboutKeySpread = {}, ownerHasKeyUseWarning = {}, didWarnAboutMaps = !1, userProvidedKeyEscapeRegex = /\/+/g, @@ -1550,13 +1561,13 @@ __DEV__ && (disableDefaultPropsExceptForClasses || void 0 !== config[propName] || void 0 === defaultProps - ? "ref" === propName - ? (props.ref = coerceStringRef( + ? disableStringRefs || "ref" !== propName + ? (props[propName] = config[propName]) + : (props.ref = coerceStringRef( config[propName], owner, element.type )) - : (props[propName] = config[propName]) : (props[propName] = defaultProps[propName])); } var propName = arguments.length - 2; @@ -1692,7 +1703,8 @@ __DEV__ && "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform" )), hasValidRef(config) && - warnIfStringRefCannotBeAutoConverted(config, config.__self), + (disableStringRefs || + warnIfStringRefCannotBeAutoConverted(config, config.__self)), hasValidKey(config) && (checkKeyStringCoercion(config.key), (typeString = "" + config.key)), config)) @@ -1700,9 +1712,9 @@ __DEV__ && "key" !== propName && "__self" !== propName && "__source" !== propName && - ("ref" === propName - ? (i.ref = coerceStringRef(config[propName], getOwner(), type)) - : (i[propName] = config[propName])); + (disableStringRefs || "ref" !== propName + ? (i[propName] = config[propName]) + : (i.ref = coerceStringRef(config[propName], getOwner(), type))); var childrenLength = arguments.length - 2; if (1 === childrenLength) i.children = children; else if (1 < childrenLength) { @@ -1985,7 +1997,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-modern-5636fad8-20241010"; + exports.version = "19.0.0-www-modern-75dd053b-20241014"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index ed040be7d7..b09b3bb067 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -14,6 +14,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, @@ -221,33 +222,49 @@ function getComponentNameFromFiber(fiber) { return null; } function getOwner() { - var dispatcher = ReactSharedInternals.A; - return null === dispatcher ? null : dispatcher.getOwner(); + if (!disableStringRefs) { + var dispatcher = ReactSharedInternals.A; + return null === dispatcher ? null : dispatcher.getOwner(); + } + return null; } var didWarnAboutStringRefs; enableLogStringRefsProd && (didWarnAboutStringRefs = {}); function ReactElement(type, key, _ref, self, source, owner, props) { _ref = props.ref; - return { - $$typeof: REACT_ELEMENT_TYPE, - type: type, - key: key, - ref: void 0 !== _ref ? _ref : null, - props: props, - _owner: owner - }; + _ref = void 0 !== _ref ? _ref : null; + return disableStringRefs + ? { + $$typeof: REACT_ELEMENT_TYPE, + type: type, + key: key, + ref: _ref, + props: props + } + : { + $$typeof: REACT_ELEMENT_TYPE, + type: type, + key: key, + ref: _ref, + props: props, + _owner: owner + }; } function jsxProd(type, config, maybeKey) { var key = null; void 0 !== maybeKey && (key = "" + maybeKey); void 0 !== config.key && (key = "" + config.key); - if ("ref" in config || "key" in config) { + if ((!disableStringRefs && "ref" in config) || "key" in config) { maybeKey = {}; for (var propName in config) "key" !== propName && - ("ref" === propName - ? (maybeKey.ref = coerceStringRef(config[propName], getOwner(), type)) - : (maybeKey[propName] = config[propName])); + (disableStringRefs || "ref" !== propName + ? (maybeKey[propName] = config[propName]) + : (maybeKey.ref = coerceStringRef( + config[propName], + getOwner(), + type + ))); } else maybeKey = config; if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) { config = type.defaultProps; @@ -264,7 +281,7 @@ function cloneAndReplaceKey(oldElement, newKey) { null, void 0, void 0, - oldElement._owner, + disableStringRefs ? void 0 : oldElement._owner, oldElement.props ); } @@ -276,6 +293,7 @@ function isValidElement(object) { ); } function coerceStringRef(mixedRef, owner, type) { + if (disableStringRefs) return mixedRef; if ("string" !== typeof mixedRef) if ("number" === typeof mixedRef || "boolean" === typeof mixedRef) mixedRef = "" + mixedRef; @@ -287,32 +305,34 @@ function coerceStringRef(mixedRef, owner, type) { return callback; } function stringRefAsCallbackRef(stringRef, type, owner, value) { - if (!owner) - throw Error( - "Element ref was specified as a string (" + - stringRef + - ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." - ); - if (1 !== owner.tag) - throw Error( - "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" - ); - enableLogStringRefsProd && - ("function" !== typeof type || - (type.prototype && type.prototype.isReactComponent)) && - ((type = getComponentNameFromFiber(owner) || "Component"), - didWarnAboutStringRefs[type] || - (enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef), - (didWarnAboutStringRefs[type] = !0))); - owner = owner.stateNode; - if (!owner) - throw Error( - "Missing owner for string ref " + - stringRef + - ". This error is likely caused by a bug in React. Please file an issue." - ); - owner = owner.refs; - null === value ? delete owner[stringRef] : (owner[stringRef] = value); + if (!disableStringRefs) { + if (!owner) + throw Error( + "Element ref was specified as a string (" + + stringRef + + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." + ); + if (1 !== owner.tag) + throw Error( + "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" + ); + enableLogStringRefsProd && + ("function" !== typeof type || + (type.prototype && type.prototype.isReactComponent)) && + ((type = getComponentNameFromFiber(owner) || "Component"), + didWarnAboutStringRefs[type] || + (enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef), + (didWarnAboutStringRefs[type] = !0))); + owner = owner.stateNode; + if (!owner) + throw Error( + "Missing owner for string ref " + + stringRef + + ". This error is likely caused by a bug in React. Please file an issue." + ); + owner = owner.refs; + null === value ? delete owner[stringRef] : (owner[stringRef] = value); + } } function escape(key) { var escaperLookup = { "=": "=0", ":": "=2" }; @@ -591,9 +611,9 @@ exports.cloneElement = function (element, config, children) { ); var props = assign({}, element.props), key = element.key, - owner = element._owner; + owner = disableStringRefs ? void 0 : element._owner; if (null != config) { - void 0 !== config.ref && (owner = getOwner()); + void 0 !== config.ref && (owner = disableStringRefs ? void 0 : getOwner()); void 0 !== config.key && (key = "" + config.key); if ( !disableDefaultPropsExceptForClasses && @@ -610,13 +630,13 @@ exports.cloneElement = function (element, config, children) { (disableDefaultPropsExceptForClasses || void 0 !== config[propName] || void 0 === defaultProps - ? "ref" === propName - ? (props.ref = coerceStringRef( + ? disableStringRefs || "ref" !== propName + ? (props[propName] = config[propName]) + : (props.ref = coerceStringRef( config[propName], owner, element.type )) - : (props[propName] = config[propName]) : (props[propName] = defaultProps[propName])); } var propName = arguments.length - 2; @@ -660,9 +680,9 @@ exports.createElement = function (type, config, children) { "key" !== propName && "__self" !== propName && "__source" !== propName && - ("ref" === propName - ? (props.ref = coerceStringRef(config[propName], getOwner(), type)) - : (props[propName] = config[propName])); + (disableStringRefs || "ref" !== propName + ? (props[propName] = config[propName]) + : (props.ref = coerceStringRef(config[propName], getOwner(), type))); var childrenLength = arguments.length - 2; if (1 === childrenLength) props.children = children; else if (1 < childrenLength) { @@ -804,4 +824,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-5636fad8-20241010"; +exports.version = "19.0.0-www-classic-75dd053b-20241014"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index d0c844867e..2d512f2db5 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -14,6 +14,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, @@ -217,33 +218,49 @@ function getComponentNameFromFiber(fiber) { return null; } function getOwner() { - var dispatcher = ReactSharedInternals.A; - return null === dispatcher ? null : dispatcher.getOwner(); + if (!disableStringRefs) { + var dispatcher = ReactSharedInternals.A; + return null === dispatcher ? null : dispatcher.getOwner(); + } + return null; } var didWarnAboutStringRefs; enableLogStringRefsProd && (didWarnAboutStringRefs = {}); function ReactElement(type, key, _ref, self, source, owner, props) { _ref = props.ref; - return { - $$typeof: REACT_ELEMENT_TYPE, - type: type, - key: key, - ref: void 0 !== _ref ? _ref : null, - props: props, - _owner: owner - }; + _ref = void 0 !== _ref ? _ref : null; + return disableStringRefs + ? { + $$typeof: REACT_ELEMENT_TYPE, + type: type, + key: key, + ref: _ref, + props: props + } + : { + $$typeof: REACT_ELEMENT_TYPE, + type: type, + key: key, + ref: _ref, + props: props, + _owner: owner + }; } function jsxProd(type, config, maybeKey) { var key = null; void 0 !== maybeKey && (key = "" + maybeKey); void 0 !== config.key && (key = "" + config.key); - if ("ref" in config || "key" in config) { + if ((!disableStringRefs && "ref" in config) || "key" in config) { maybeKey = {}; for (var propName in config) "key" !== propName && - ("ref" === propName - ? (maybeKey.ref = coerceStringRef(config[propName], getOwner(), type)) - : (maybeKey[propName] = config[propName])); + (disableStringRefs || "ref" !== propName + ? (maybeKey[propName] = config[propName]) + : (maybeKey.ref = coerceStringRef( + config[propName], + getOwner(), + type + ))); } else maybeKey = config; if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) { config = type.defaultProps; @@ -260,7 +277,7 @@ function cloneAndReplaceKey(oldElement, newKey) { null, void 0, void 0, - oldElement._owner, + disableStringRefs ? void 0 : oldElement._owner, oldElement.props ); } @@ -272,6 +289,7 @@ function isValidElement(object) { ); } function coerceStringRef(mixedRef, owner, type) { + if (disableStringRefs) return mixedRef; if ("string" !== typeof mixedRef) if ("number" === typeof mixedRef || "boolean" === typeof mixedRef) mixedRef = "" + mixedRef; @@ -283,32 +301,34 @@ function coerceStringRef(mixedRef, owner, type) { return callback; } function stringRefAsCallbackRef(stringRef, type, owner, value) { - if (!owner) - throw Error( - "Element ref was specified as a string (" + - stringRef + - ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." - ); - if (1 !== owner.tag) - throw Error( - "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" - ); - enableLogStringRefsProd && - ("function" !== typeof type || - (type.prototype && type.prototype.isReactComponent)) && - ((type = getComponentNameFromFiber(owner) || "Component"), - didWarnAboutStringRefs[type] || - (enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef), - (didWarnAboutStringRefs[type] = !0))); - owner = owner.stateNode; - if (!owner) - throw Error( - "Missing owner for string ref " + - stringRef + - ". This error is likely caused by a bug in React. Please file an issue." - ); - owner = owner.refs; - null === value ? delete owner[stringRef] : (owner[stringRef] = value); + if (!disableStringRefs) { + if (!owner) + throw Error( + "Element ref was specified as a string (" + + stringRef + + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." + ); + if (1 !== owner.tag) + throw Error( + "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" + ); + enableLogStringRefsProd && + ("function" !== typeof type || + (type.prototype && type.prototype.isReactComponent)) && + ((type = getComponentNameFromFiber(owner) || "Component"), + didWarnAboutStringRefs[type] || + (enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef), + (didWarnAboutStringRefs[type] = !0))); + owner = owner.stateNode; + if (!owner) + throw Error( + "Missing owner for string ref " + + stringRef + + ". This error is likely caused by a bug in React. Please file an issue." + ); + owner = owner.refs; + null === value ? delete owner[stringRef] : (owner[stringRef] = value); + } } function escape(key) { var escaperLookup = { "=": "=0", ":": "=2" }; @@ -587,9 +607,9 @@ exports.cloneElement = function (element, config, children) { ); var props = assign({}, element.props), key = element.key, - owner = element._owner; + owner = disableStringRefs ? void 0 : element._owner; if (null != config) { - void 0 !== config.ref && (owner = getOwner()); + void 0 !== config.ref && (owner = disableStringRefs ? void 0 : getOwner()); void 0 !== config.key && (key = "" + config.key); if ( !disableDefaultPropsExceptForClasses && @@ -606,13 +626,13 @@ exports.cloneElement = function (element, config, children) { (disableDefaultPropsExceptForClasses || void 0 !== config[propName] || void 0 === defaultProps - ? "ref" === propName - ? (props.ref = coerceStringRef( + ? disableStringRefs || "ref" !== propName + ? (props[propName] = config[propName]) + : (props.ref = coerceStringRef( config[propName], owner, element.type )) - : (props[propName] = config[propName]) : (props[propName] = defaultProps[propName])); } var propName = arguments.length - 2; @@ -656,9 +676,9 @@ exports.createElement = function (type, config, children) { "key" !== propName && "__self" !== propName && "__source" !== propName && - ("ref" === propName - ? (props.ref = coerceStringRef(config[propName], getOwner(), type)) - : (props[propName] = config[propName])); + (disableStringRefs || "ref" !== propName + ? (props[propName] = config[propName]) + : (props.ref = coerceStringRef(config[propName], getOwner(), type))); var childrenLength = arguments.length - 2; if (1 === childrenLength) props.children = children; else if (1 < childrenLength) { @@ -800,4 +820,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-5636fad8-20241010"; +exports.version = "19.0.0-www-modern-75dd053b-20241014"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index 00d19f3c5e..3f95aeb888 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -18,6 +18,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, @@ -225,33 +226,49 @@ function getComponentNameFromFiber(fiber) { return null; } function getOwner() { - var dispatcher = ReactSharedInternals.A; - return null === dispatcher ? null : dispatcher.getOwner(); + if (!disableStringRefs) { + var dispatcher = ReactSharedInternals.A; + return null === dispatcher ? null : dispatcher.getOwner(); + } + return null; } var didWarnAboutStringRefs; enableLogStringRefsProd && (didWarnAboutStringRefs = {}); function ReactElement(type, key, _ref, self, source, owner, props) { _ref = props.ref; - return { - $$typeof: REACT_ELEMENT_TYPE, - type: type, - key: key, - ref: void 0 !== _ref ? _ref : null, - props: props, - _owner: owner - }; + _ref = void 0 !== _ref ? _ref : null; + return disableStringRefs + ? { + $$typeof: REACT_ELEMENT_TYPE, + type: type, + key: key, + ref: _ref, + props: props + } + : { + $$typeof: REACT_ELEMENT_TYPE, + type: type, + key: key, + ref: _ref, + props: props, + _owner: owner + }; } function jsxProd(type, config, maybeKey) { var key = null; void 0 !== maybeKey && (key = "" + maybeKey); void 0 !== config.key && (key = "" + config.key); - if ("ref" in config || "key" in config) { + if ((!disableStringRefs && "ref" in config) || "key" in config) { maybeKey = {}; for (var propName in config) "key" !== propName && - ("ref" === propName - ? (maybeKey.ref = coerceStringRef(config[propName], getOwner(), type)) - : (maybeKey[propName] = config[propName])); + (disableStringRefs || "ref" !== propName + ? (maybeKey[propName] = config[propName]) + : (maybeKey.ref = coerceStringRef( + config[propName], + getOwner(), + type + ))); } else maybeKey = config; if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) { config = type.defaultProps; @@ -268,7 +285,7 @@ function cloneAndReplaceKey(oldElement, newKey) { null, void 0, void 0, - oldElement._owner, + disableStringRefs ? void 0 : oldElement._owner, oldElement.props ); } @@ -280,6 +297,7 @@ function isValidElement(object) { ); } function coerceStringRef(mixedRef, owner, type) { + if (disableStringRefs) return mixedRef; if ("string" !== typeof mixedRef) if ("number" === typeof mixedRef || "boolean" === typeof mixedRef) mixedRef = "" + mixedRef; @@ -291,32 +309,34 @@ function coerceStringRef(mixedRef, owner, type) { return callback; } function stringRefAsCallbackRef(stringRef, type, owner, value) { - if (!owner) - throw Error( - "Element ref was specified as a string (" + - stringRef + - ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." - ); - if (1 !== owner.tag) - throw Error( - "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" - ); - enableLogStringRefsProd && - ("function" !== typeof type || - (type.prototype && type.prototype.isReactComponent)) && - ((type = getComponentNameFromFiber(owner) || "Component"), - didWarnAboutStringRefs[type] || - (enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef), - (didWarnAboutStringRefs[type] = !0))); - owner = owner.stateNode; - if (!owner) - throw Error( - "Missing owner for string ref " + - stringRef + - ". This error is likely caused by a bug in React. Please file an issue." - ); - owner = owner.refs; - null === value ? delete owner[stringRef] : (owner[stringRef] = value); + if (!disableStringRefs) { + if (!owner) + throw Error( + "Element ref was specified as a string (" + + stringRef + + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." + ); + if (1 !== owner.tag) + throw Error( + "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" + ); + enableLogStringRefsProd && + ("function" !== typeof type || + (type.prototype && type.prototype.isReactComponent)) && + ((type = getComponentNameFromFiber(owner) || "Component"), + didWarnAboutStringRefs[type] || + (enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef), + (didWarnAboutStringRefs[type] = !0))); + owner = owner.stateNode; + if (!owner) + throw Error( + "Missing owner for string ref " + + stringRef + + ". This error is likely caused by a bug in React. Please file an issue." + ); + owner = owner.refs; + null === value ? delete owner[stringRef] : (owner[stringRef] = value); + } } function escape(key) { var escaperLookup = { "=": "=0", ":": "=2" }; @@ -595,9 +615,9 @@ exports.cloneElement = function (element, config, children) { ); var props = assign({}, element.props), key = element.key, - owner = element._owner; + owner = disableStringRefs ? void 0 : element._owner; if (null != config) { - void 0 !== config.ref && (owner = getOwner()); + void 0 !== config.ref && (owner = disableStringRefs ? void 0 : getOwner()); void 0 !== config.key && (key = "" + config.key); if ( !disableDefaultPropsExceptForClasses && @@ -614,13 +634,13 @@ exports.cloneElement = function (element, config, children) { (disableDefaultPropsExceptForClasses || void 0 !== config[propName] || void 0 === defaultProps - ? "ref" === propName - ? (props.ref = coerceStringRef( + ? disableStringRefs || "ref" !== propName + ? (props[propName] = config[propName]) + : (props.ref = coerceStringRef( config[propName], owner, element.type )) - : (props[propName] = config[propName]) : (props[propName] = defaultProps[propName])); } var propName = arguments.length - 2; @@ -664,9 +684,9 @@ exports.createElement = function (type, config, children) { "key" !== propName && "__self" !== propName && "__source" !== propName && - ("ref" === propName - ? (props.ref = coerceStringRef(config[propName], getOwner(), type)) - : (props[propName] = config[propName])); + (disableStringRefs || "ref" !== propName + ? (props[propName] = config[propName]) + : (props.ref = coerceStringRef(config[propName], getOwner(), type))); var childrenLength = arguments.length - 2; if (1 === childrenLength) props.children = children; else if (1 < childrenLength) { @@ -808,7 +828,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-5636fad8-20241010"; +exports.version = "19.0.0-www-classic-75dd053b-20241014"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index 3f9c44e46f..d0e863d582 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -18,6 +18,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, @@ -221,33 +222,49 @@ function getComponentNameFromFiber(fiber) { return null; } function getOwner() { - var dispatcher = ReactSharedInternals.A; - return null === dispatcher ? null : dispatcher.getOwner(); + if (!disableStringRefs) { + var dispatcher = ReactSharedInternals.A; + return null === dispatcher ? null : dispatcher.getOwner(); + } + return null; } var didWarnAboutStringRefs; enableLogStringRefsProd && (didWarnAboutStringRefs = {}); function ReactElement(type, key, _ref, self, source, owner, props) { _ref = props.ref; - return { - $$typeof: REACT_ELEMENT_TYPE, - type: type, - key: key, - ref: void 0 !== _ref ? _ref : null, - props: props, - _owner: owner - }; + _ref = void 0 !== _ref ? _ref : null; + return disableStringRefs + ? { + $$typeof: REACT_ELEMENT_TYPE, + type: type, + key: key, + ref: _ref, + props: props + } + : { + $$typeof: REACT_ELEMENT_TYPE, + type: type, + key: key, + ref: _ref, + props: props, + _owner: owner + }; } function jsxProd(type, config, maybeKey) { var key = null; void 0 !== maybeKey && (key = "" + maybeKey); void 0 !== config.key && (key = "" + config.key); - if ("ref" in config || "key" in config) { + if ((!disableStringRefs && "ref" in config) || "key" in config) { maybeKey = {}; for (var propName in config) "key" !== propName && - ("ref" === propName - ? (maybeKey.ref = coerceStringRef(config[propName], getOwner(), type)) - : (maybeKey[propName] = config[propName])); + (disableStringRefs || "ref" !== propName + ? (maybeKey[propName] = config[propName]) + : (maybeKey.ref = coerceStringRef( + config[propName], + getOwner(), + type + ))); } else maybeKey = config; if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) { config = type.defaultProps; @@ -264,7 +281,7 @@ function cloneAndReplaceKey(oldElement, newKey) { null, void 0, void 0, - oldElement._owner, + disableStringRefs ? void 0 : oldElement._owner, oldElement.props ); } @@ -276,6 +293,7 @@ function isValidElement(object) { ); } function coerceStringRef(mixedRef, owner, type) { + if (disableStringRefs) return mixedRef; if ("string" !== typeof mixedRef) if ("number" === typeof mixedRef || "boolean" === typeof mixedRef) mixedRef = "" + mixedRef; @@ -287,32 +305,34 @@ function coerceStringRef(mixedRef, owner, type) { return callback; } function stringRefAsCallbackRef(stringRef, type, owner, value) { - if (!owner) - throw Error( - "Element ref was specified as a string (" + - stringRef + - ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." - ); - if (1 !== owner.tag) - throw Error( - "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" - ); - enableLogStringRefsProd && - ("function" !== typeof type || - (type.prototype && type.prototype.isReactComponent)) && - ((type = getComponentNameFromFiber(owner) || "Component"), - didWarnAboutStringRefs[type] || - (enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef), - (didWarnAboutStringRefs[type] = !0))); - owner = owner.stateNode; - if (!owner) - throw Error( - "Missing owner for string ref " + - stringRef + - ". This error is likely caused by a bug in React. Please file an issue." - ); - owner = owner.refs; - null === value ? delete owner[stringRef] : (owner[stringRef] = value); + if (!disableStringRefs) { + if (!owner) + throw Error( + "Element ref was specified as a string (" + + stringRef + + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information." + ); + if (1 !== owner.tag) + throw Error( + "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref" + ); + enableLogStringRefsProd && + ("function" !== typeof type || + (type.prototype && type.prototype.isReactComponent)) && + ((type = getComponentNameFromFiber(owner) || "Component"), + didWarnAboutStringRefs[type] || + (enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef), + (didWarnAboutStringRefs[type] = !0))); + owner = owner.stateNode; + if (!owner) + throw Error( + "Missing owner for string ref " + + stringRef + + ". This error is likely caused by a bug in React. Please file an issue." + ); + owner = owner.refs; + null === value ? delete owner[stringRef] : (owner[stringRef] = value); + } } function escape(key) { var escaperLookup = { "=": "=0", ":": "=2" }; @@ -591,9 +611,9 @@ exports.cloneElement = function (element, config, children) { ); var props = assign({}, element.props), key = element.key, - owner = element._owner; + owner = disableStringRefs ? void 0 : element._owner; if (null != config) { - void 0 !== config.ref && (owner = getOwner()); + void 0 !== config.ref && (owner = disableStringRefs ? void 0 : getOwner()); void 0 !== config.key && (key = "" + config.key); if ( !disableDefaultPropsExceptForClasses && @@ -610,13 +630,13 @@ exports.cloneElement = function (element, config, children) { (disableDefaultPropsExceptForClasses || void 0 !== config[propName] || void 0 === defaultProps - ? "ref" === propName - ? (props.ref = coerceStringRef( + ? disableStringRefs || "ref" !== propName + ? (props[propName] = config[propName]) + : (props.ref = coerceStringRef( config[propName], owner, element.type )) - : (props[propName] = config[propName]) : (props[propName] = defaultProps[propName])); } var propName = arguments.length - 2; @@ -660,9 +680,9 @@ exports.createElement = function (type, config, children) { "key" !== propName && "__self" !== propName && "__source" !== propName && - ("ref" === propName - ? (props.ref = coerceStringRef(config[propName], getOwner(), type)) - : (props[propName] = config[propName])); + (disableStringRefs || "ref" !== propName + ? (props[propName] = config[propName]) + : (props.ref = coerceStringRef(config[propName], getOwner(), type))); var childrenLength = arguments.length - 2; if (1 === childrenLength) props.children = children; else if (1 < childrenLength) { @@ -804,7 +824,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-5636fad8-20241010"; +exports.version = "19.0.0-www-modern-75dd053b-20241014"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index e7f89ca5ef..6cfb85c867 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -6634,6 +6634,7 @@ __DEV__ && ); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -10018,11 +10019,13 @@ __DEV__ && } else finishedWork.refCleanup = ref(instanceToUse); else - ref.hasOwnProperty("current") || - error$jscomp$0( - "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", - getComponentNameFromFiber(finishedWork) - ), + disableStringRefs && "string" === typeof ref + ? error$jscomp$0("String refs are no longer supported.") + : ref.hasOwnProperty("current") || + error$jscomp$0( + "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", + getComponentNameFromFiber(finishedWork) + ), (ref.current = instanceToUse); } } @@ -13252,7 +13255,7 @@ __DEV__ && unitOfWork, entangledRenderLanes )); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) @@ -13260,7 +13263,7 @@ __DEV__ && } function replaySuspendedUnitOfWork(unitOfWork) { var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -14801,6 +14804,7 @@ __DEV__ && dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -17014,11 +17018,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-5636fad8-20241010", + version: "19.0.0-www-classic-75dd053b-20241014", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -17052,7 +17056,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.0.0-www-classic-5636fad8-20241010"; + exports.version = "19.0.0-www-classic-75dd053b-20241014"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index ee7fa88bb0..2d343c5380 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -6152,6 +6152,7 @@ __DEV__ && ); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -9640,11 +9641,13 @@ __DEV__ && } else finishedWork.refCleanup = ref(instanceToUse); else - ref.hasOwnProperty("current") || - error$jscomp$0( - "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", - getComponentNameFromFiber(finishedWork) - ), + disableStringRefs && "string" === typeof ref + ? error$jscomp$0("String refs are no longer supported.") + : ref.hasOwnProperty("current") || + error$jscomp$0( + "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", + getComponentNameFromFiber(finishedWork) + ), (ref.current = instanceToUse); } } @@ -12797,7 +12800,7 @@ __DEV__ && unitOfWork, entangledRenderLanes )); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) @@ -12805,7 +12808,7 @@ __DEV__ && } function replaySuspendedUnitOfWork(unitOfWork) { var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -14240,6 +14243,7 @@ __DEV__ && dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -16457,11 +16461,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-5636fad8-20241010", + version: "19.0.0-www-modern-75dd053b-20241014", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16495,7 +16499,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.0.0-www-modern-5636fad8-20241010"; + exports.version = "19.0.0-www-modern-75dd053b-20241014"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index 54ccaefd07..c395cab005 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -67,6 +67,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -4689,6 +4690,7 @@ function markRef(current, workInProgress) { throw Error(formatProdErrorMessage(284)); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -4995,7 +4997,7 @@ function finishClassComponent( ) ); shouldUpdate = workInProgress.stateNode; - current = workInProgress; + disableStringRefs || (current = workInProgress); var nextChildren = didCaptureError && "function" !== typeof Component.getDerivedStateFromError ? null @@ -9029,19 +9031,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin( } } var DefaultAsyncDispatcher = { - getCacheForType: function (resourceType) { - var cache = readContext(CacheContext), - cacheForType = cache.data.get(resourceType); - void 0 === cacheForType && - ((cacheForType = resourceType()), - cache.data.set(resourceType, cacheForType)); - return cacheForType; - }, - getOwner: function () { - return current; - } - }, - PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, + getCacheForType: function (resourceType) { + var cache = readContext(CacheContext), + cacheForType = cache.data.get(resourceType); + void 0 === cacheForType && + ((cacheForType = resourceType()), + cache.data.set(resourceType, cacheForType)); + return cacheForType; + } +}; +disableStringRefs || + (DefaultAsyncDispatcher.getOwner = function () { + return current; + }); +var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, executionContext = 0, workInProgressRoot = null, workInProgress = null, @@ -9557,7 +9560,7 @@ function prepareFreshStack(root, lanes) { function handleThrow(root, thrownValue) { currentlyRenderingFiber$1 = null; ReactSharedInternals.H = ContextOnlyDispatcher; - current = null; + disableStringRefs || (current = null); if (thrownValue === SuspenseException) { thrownValue = getSuspendedThenable(); var JSCompiler_temp; @@ -9796,7 +9799,7 @@ function workLoopConcurrent() { } function performUnitOfWork(unitOfWork) { var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes); - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -9849,7 +9852,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { resetWorkInProgress(next, entangledRenderLanes)), (next = beginWork(current$jscomp$0, next, entangledRenderLanes)); } - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -10826,13 +10829,13 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1467 = { bundleType: 0, - version: "19.0.0-www-classic-5636fad8-20241010", + version: "19.0.0-www-classic-75dd053b-20241014", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: function () { return null; }, - reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1468 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10858,4 +10861,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.0.0-www-classic-5636fad8-20241010"; +exports.version = "19.0.0-www-classic-75dd053b-20241014"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 0b97ce0dab..afed84614d 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -65,6 +65,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -4428,6 +4429,7 @@ function markRef(current, workInProgress) { throw Error(formatProdErrorMessage(284)); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -4736,7 +4738,7 @@ function updateClassComponent( nextProps = 0 !== (workInProgress.flags & 128); context || nextProps ? ((context = workInProgress.stateNode), - (current = workInProgress), + disableStringRefs || (current = workInProgress), (Component = nextProps && "function" !== typeof Component.getDerivedStateFromError ? null @@ -8604,19 +8606,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin( } } var DefaultAsyncDispatcher = { - getCacheForType: function (resourceType) { - var cache = readContext(CacheContext), - cacheForType = cache.data.get(resourceType); - void 0 === cacheForType && - ((cacheForType = resourceType()), - cache.data.set(resourceType, cacheForType)); - return cacheForType; - }, - getOwner: function () { - return current; - } - }, - PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, + getCacheForType: function (resourceType) { + var cache = readContext(CacheContext), + cacheForType = cache.data.get(resourceType); + void 0 === cacheForType && + ((cacheForType = resourceType()), + cache.data.set(resourceType, cacheForType)); + return cacheForType; + } +}; +disableStringRefs || + (DefaultAsyncDispatcher.getOwner = function () { + return current; + }); +var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, executionContext = 0, workInProgressRoot = null, workInProgress = null, @@ -9120,7 +9123,7 @@ function prepareFreshStack(root, lanes) { function handleThrow(root, thrownValue) { currentlyRenderingFiber$1 = null; ReactSharedInternals.H = ContextOnlyDispatcher; - current = null; + disableStringRefs || (current = null); if (thrownValue === SuspenseException) { thrownValue = getSuspendedThenable(); var JSCompiler_temp; @@ -9359,7 +9362,7 @@ function workLoopConcurrent() { } function performUnitOfWork(unitOfWork) { var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes); - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -9408,7 +9411,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { resetWorkInProgress(next, entangledRenderLanes)), (next = beginWork(current$jscomp$0, next, entangledRenderLanes)); } - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -10335,27 +10338,27 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component); -var internals$jscomp$inline_1459 = { +var internals$jscomp$inline_1460 = { bundleType: 0, - version: "19.0.0-www-modern-5636fad8-20241010", + version: "19.0.0-www-modern-75dd053b-20241014", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: function () { return null; }, - reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1460 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1461 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1460.isDisabled && - hook$jscomp$inline_1460.supportsFiber + !hook$jscomp$inline_1461.isDisabled && + hook$jscomp$inline_1461.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1460.inject( - internals$jscomp$inline_1459 + (rendererID = hook$jscomp$inline_1461.inject( + internals$jscomp$inline_1460 )), - (injectedHook = hook$jscomp$inline_1460); + (injectedHook = hook$jscomp$inline_1461); } catch (err) {} } var Path = Mode$1.Path; @@ -10369,4 +10372,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.0.0-www-modern-5636fad8-20241010"; +exports.version = "19.0.0-www-modern-75dd053b-20241014"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index b2614c3f1a..306775d799 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -8707,6 +8707,7 @@ __DEV__ && ); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -12699,11 +12700,13 @@ __DEV__ && } else finishedWork.refCleanup = ref(instanceToUse); else - ref.hasOwnProperty("current") || - error$jscomp$0( - "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", - getComponentNameFromFiber(finishedWork) - ), + disableStringRefs && "string" === typeof ref + ? error$jscomp$0("String refs are no longer supported.") + : ref.hasOwnProperty("current") || + error$jscomp$0( + "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", + getComponentNameFromFiber(finishedWork) + ), (ref.current = instanceToUse); } } @@ -16424,7 +16427,7 @@ __DEV__ && unitOfWork, entangledRenderLanes )); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) @@ -16432,7 +16435,7 @@ __DEV__ && } function replaySuspendedUnitOfWork(unitOfWork) { var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -24025,6 +24028,7 @@ __DEV__ && dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -27771,11 +27775,11 @@ __DEV__ && : flushSyncErrorInBuildsThatSupportLegacyMode; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-5636fad8-20241010" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-75dd053b-20241014" !== 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.0.0-www-classic-5636fad8-20241010\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-75dd053b-20241014\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27819,11 +27823,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-5636fad8-20241010", + version: "19.0.0-www-classic-75dd053b-20241014", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28476,7 +28480,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-5636fad8-20241010"; + exports.version = "19.0.0-www-classic-75dd053b-20241014"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 108dd82cb6..19814276d9 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -8170,6 +8170,7 @@ __DEV__ && ); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -12251,11 +12252,13 @@ __DEV__ && } else finishedWork.refCleanup = ref(instanceToUse); else - ref.hasOwnProperty("current") || - error$jscomp$0( - "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", - getComponentNameFromFiber(finishedWork) - ), + disableStringRefs && "string" === typeof ref + ? error$jscomp$0("String refs are no longer supported.") + : ref.hasOwnProperty("current") || + error$jscomp$0( + "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", + getComponentNameFromFiber(finishedWork) + ), (ref.current = instanceToUse); } } @@ -15889,7 +15892,7 @@ __DEV__ && unitOfWork, entangledRenderLanes )); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) @@ -15897,7 +15900,7 @@ __DEV__ && } function replaySuspendedUnitOfWork(unitOfWork) { var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -23146,6 +23149,7 @@ __DEV__ && dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -26885,11 +26889,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-5636fad8-20241010" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-75dd053b-20241014" !== 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.0.0-www-modern-5636fad8-20241010\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-75dd053b-20241014\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -26932,11 +26936,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-5636fad8-20241010", + version: "19.0.0-www-modern-75dd053b-20241014", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27541,7 +27545,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-5636fad8-20241010"; + exports.version = "19.0.0-www-modern-75dd053b-20241014"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index a0e567235e..8091949f4f 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -40,6 +40,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -5690,6 +5691,7 @@ function markRef(current, workInProgress) { throw Error(formatProdErrorMessage(284)); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -6000,7 +6002,7 @@ function finishClassComponent( ) ); shouldUpdate = workInProgress.stateNode; - current = workInProgress; + disableStringRefs || (current = workInProgress); var nextChildren = didCaptureError && "function" !== typeof Component.getDerivedStateFromError ? null @@ -10884,19 +10886,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin( } } var DefaultAsyncDispatcher = { - getCacheForType: function (resourceType) { - var cache = readContext(CacheContext), - cacheForType = cache.data.get(resourceType); - void 0 === cacheForType && - ((cacheForType = resourceType()), - cache.data.set(resourceType, cacheForType)); - return cacheForType; - }, - getOwner: function () { - return current; - } - }, - postPaintCallbackScheduled = !1, + getCacheForType: function (resourceType) { + var cache = readContext(CacheContext), + cacheForType = cache.data.get(resourceType); + void 0 === cacheForType && + ((cacheForType = resourceType()), + cache.data.set(resourceType, cacheForType)); + return cacheForType; + } +}; +disableStringRefs || + (DefaultAsyncDispatcher.getOwner = function () { + return current; + }); +var postPaintCallbackScheduled = !1, callbacks = []; function schedulePostPaintCallback(callback) { callbacks.push(callback); @@ -11458,7 +11461,7 @@ function prepareFreshStack(root, lanes) { function handleThrow(root, thrownValue) { currentlyRenderingFiber$1 = null; ReactSharedInternals.H = ContextOnlyDispatcher; - current = null; + disableStringRefs || (current = null); thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = @@ -11696,7 +11699,7 @@ function workLoopConcurrent() { } function performUnitOfWork(unitOfWork) { var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes); - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -11749,7 +11752,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { resetWorkInProgress(next, entangledRenderLanes)), (next = beginWork(current$jscomp$0, next, entangledRenderLanes)); } - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -17412,14 +17415,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1774 = React.version; if ( - "19.0.0-www-classic-5636fad8-20241010" !== + "19.0.0-www-classic-75dd053b-20241014" !== isomorphicReactPackageVersion$jscomp$inline_1774 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1774, - "19.0.0-www-classic-5636fad8-20241010" + "19.0.0-www-classic-75dd053b-20241014" ) ); function flushSyncFromReconciler(fn) { @@ -17464,11 +17467,11 @@ Internals.Events = [ ]; var internals$jscomp$inline_2287 = { bundleType: 0, - version: "19.0.0-www-classic-5636fad8-20241010", + version: "19.0.0-www-classic-75dd053b-20241014", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2288 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17924,4 +17927,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-5636fad8-20241010"; +exports.version = "19.0.0-www-classic-75dd053b-20241014"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index cc59d65508..0b594a2c91 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -38,6 +38,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -5384,6 +5385,7 @@ function markRef(current, workInProgress) { throw Error(formatProdErrorMessage(284)); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -5696,7 +5698,7 @@ function updateClassComponent( nextProps = 0 !== (workInProgress.flags & 128); context || nextProps ? ((context = workInProgress.stateNode), - (current = workInProgress), + disableStringRefs || (current = workInProgress), (Component = nextProps && "function" !== typeof Component.getDerivedStateFromError ? null @@ -10428,19 +10430,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin( } } var DefaultAsyncDispatcher = { - getCacheForType: function (resourceType) { - var cache = readContext(CacheContext), - cacheForType = cache.data.get(resourceType); - void 0 === cacheForType && - ((cacheForType = resourceType()), - cache.data.set(resourceType, cacheForType)); - return cacheForType; - }, - getOwner: function () { - return current; - } - }, - postPaintCallbackScheduled = !1, + getCacheForType: function (resourceType) { + var cache = readContext(CacheContext), + cacheForType = cache.data.get(resourceType); + void 0 === cacheForType && + ((cacheForType = resourceType()), + cache.data.set(resourceType, cacheForType)); + return cacheForType; + } +}; +disableStringRefs || + (DefaultAsyncDispatcher.getOwner = function () { + return current; + }); +var postPaintCallbackScheduled = !1, callbacks = []; function schedulePostPaintCallback(callback) { callbacks.push(callback); @@ -10977,7 +10980,7 @@ function prepareFreshStack(root, lanes) { function handleThrow(root, thrownValue) { currentlyRenderingFiber$1 = null; ReactSharedInternals.H = ContextOnlyDispatcher; - current = null; + disableStringRefs || (current = null); thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = @@ -11215,7 +11218,7 @@ function workLoopConcurrent() { } function performUnitOfWork(unitOfWork) { var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes); - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -11264,7 +11267,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { resetWorkInProgress(next, entangledRenderLanes)), (next = beginWork(current$jscomp$0, next, entangledRenderLanes)); } - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -16780,14 +16783,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1745 = React.version; if ( - "19.0.0-www-modern-5636fad8-20241010" !== + "19.0.0-www-modern-75dd053b-20241014" !== isomorphicReactPackageVersion$jscomp$inline_1745 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1745, - "19.0.0-www-modern-5636fad8-20241010" + "19.0.0-www-modern-75dd053b-20241014" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -16803,25 +16806,25 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2278 = { +var internals$jscomp$inline_2279 = { bundleType: 0, - version: "19.0.0-www-modern-5636fad8-20241010", + version: "19.0.0-www-modern-75dd053b-20241014", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2279 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2280 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2279.isDisabled && - hook$jscomp$inline_2279.supportsFiber + !hook$jscomp$inline_2280.isDisabled && + hook$jscomp$inline_2280.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2279.inject( - internals$jscomp$inline_2278 + (rendererID = hook$jscomp$inline_2280.inject( + internals$jscomp$inline_2279 )), - (injectedHook = hook$jscomp$inline_2279); + (injectedHook = hook$jscomp$inline_2280); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17172,4 +17175,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-5636fad8-20241010"; +exports.version = "19.0.0-www-modern-75dd053b-20241014"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index a6873d05cd..4bb3404fae 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -44,6 +44,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -5871,6 +5872,7 @@ function markRef(current, workInProgress) { throw Error(formatProdErrorMessage(284)); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -6185,7 +6187,7 @@ function finishClassComponent( ) ); shouldUpdate = workInProgress.stateNode; - current = workInProgress; + disableStringRefs || (current = workInProgress); if ( didCaptureError && "function" !== typeof Component.getDerivedStateFromError @@ -11434,19 +11436,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin( } } var DefaultAsyncDispatcher = { - getCacheForType: function (resourceType) { - var cache = readContext(CacheContext), - cacheForType = cache.data.get(resourceType); - void 0 === cacheForType && - ((cacheForType = resourceType()), - cache.data.set(resourceType, cacheForType)); - return cacheForType; - }, - getOwner: function () { - return current; - } - }, - postPaintCallbackScheduled = !1, + getCacheForType: function (resourceType) { + var cache = readContext(CacheContext), + cacheForType = cache.data.get(resourceType); + void 0 === cacheForType && + ((cacheForType = resourceType()), + cache.data.set(resourceType, cacheForType)); + return cacheForType; + } +}; +disableStringRefs || + (DefaultAsyncDispatcher.getOwner = function () { + return current; + }); +var postPaintCallbackScheduled = !1, callbacks = []; function schedulePostPaintCallback(callback) { callbacks.push(callback); @@ -12009,7 +12012,7 @@ function prepareFreshStack(root, lanes) { function handleThrow(root, thrownValue) { currentlyRenderingFiber$1 = null; ReactSharedInternals.H = ContextOnlyDispatcher; - current = null; + disableStringRefs || (current = null); thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = @@ -12319,7 +12322,7 @@ function performUnitOfWork(unitOfWork) { unitOfWork, entangledRenderLanes )); - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current$jscomp$0 ? completeUnitOfWork(unitOfWork) @@ -12382,7 +12385,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { } isProfilingMode && stopProfilerTimerIfRunningAndRecordDuration(next); next = current$jscomp$0; - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -18137,14 +18140,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1867 = React.version; if ( - "19.0.0-www-classic-5636fad8-20241010" !== + "19.0.0-www-classic-75dd053b-20241014" !== isomorphicReactPackageVersion$jscomp$inline_1867 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1867, - "19.0.0-www-classic-5636fad8-20241010" + "19.0.0-www-classic-75dd053b-20241014" ) ); function flushSyncFromReconciler(fn) { @@ -18189,11 +18192,11 @@ Internals.Events = [ ]; var internals$jscomp$inline_1874 = { bundleType: 0, - version: "19.0.0-www-classic-5636fad8-20241010", + version: "19.0.0-www-classic-75dd053b-20241014", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014" }; enableSchedulingProfiler && ((internals$jscomp$inline_1874.getLaneLabelMap = getLaneLabelMap), @@ -18652,7 +18655,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-5636fad8-20241010"; +exports.version = "19.0.0-www-classic-75dd053b-20241014"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index a15ef1b20e..35485ae9f4 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -42,6 +42,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -5565,6 +5566,7 @@ function markRef(current, workInProgress) { throw Error(formatProdErrorMessage(284)); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -5881,7 +5883,7 @@ function updateClassComponent( nextProps = 0 !== (workInProgress.flags & 128); context || nextProps ? ((context = workInProgress.stateNode), - (current = workInProgress), + disableStringRefs || (current = workInProgress), nextProps && "function" !== typeof Component.getDerivedStateFromError ? ((Component = null), (profilerStartTime = -1)) : (enableSchedulingProfiler && @@ -10961,19 +10963,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin( } } var DefaultAsyncDispatcher = { - getCacheForType: function (resourceType) { - var cache = readContext(CacheContext), - cacheForType = cache.data.get(resourceType); - void 0 === cacheForType && - ((cacheForType = resourceType()), - cache.data.set(resourceType, cacheForType)); - return cacheForType; - }, - getOwner: function () { - return current; - } - }, - postPaintCallbackScheduled = !1, + getCacheForType: function (resourceType) { + var cache = readContext(CacheContext), + cacheForType = cache.data.get(resourceType); + void 0 === cacheForType && + ((cacheForType = resourceType()), + cache.data.set(resourceType, cacheForType)); + return cacheForType; + } +}; +disableStringRefs || + (DefaultAsyncDispatcher.getOwner = function () { + return current; + }); +var postPaintCallbackScheduled = !1, callbacks = []; function schedulePostPaintCallback(callback) { callbacks.push(callback); @@ -11511,7 +11514,7 @@ function prepareFreshStack(root, lanes) { function handleThrow(root, thrownValue) { currentlyRenderingFiber$1 = null; ReactSharedInternals.H = ContextOnlyDispatcher; - current = null; + disableStringRefs || (current = null); thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = @@ -11821,7 +11824,7 @@ function performUnitOfWork(unitOfWork) { unitOfWork, entangledRenderLanes )); - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current$jscomp$0 ? completeUnitOfWork(unitOfWork) @@ -11880,7 +11883,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { } isProfilingMode && stopProfilerTimerIfRunningAndRecordDuration(next); next = current$jscomp$0; - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -17488,14 +17491,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1838 = React.version; if ( - "19.0.0-www-modern-5636fad8-20241010" !== + "19.0.0-www-modern-75dd053b-20241014" !== isomorphicReactPackageVersion$jscomp$inline_1838 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1838, - "19.0.0-www-modern-5636fad8-20241010" + "19.0.0-www-modern-75dd053b-20241014" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17513,26 +17516,26 @@ Internals.Events = [ ]; var internals$jscomp$inline_1840 = { bundleType: 0, - version: "19.0.0-www-modern-5636fad8-20241010", + version: "19.0.0-www-modern-75dd053b-20241014", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014" }; enableSchedulingProfiler && ((internals$jscomp$inline_1840.getLaneLabelMap = getLaneLabelMap), (internals$jscomp$inline_1840.injectProfilingHooks = injectProfilingHooks)); if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2330 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2331 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2330.isDisabled && - hook$jscomp$inline_2330.supportsFiber + !hook$jscomp$inline_2331.isDisabled && + hook$jscomp$inline_2331.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2330.inject( + (rendererID = hook$jscomp$inline_2331.inject( internals$jscomp$inline_1840 )), - (injectedHook = hook$jscomp$inline_2330); + (injectedHook = hook$jscomp$inline_2331); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17883,7 +17886,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-5636fad8-20241010"; +exports.version = "19.0.0-www-modern-75dd053b-20241014"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 02486de154..976cb253f1 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -8987,5 +8987,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-www-classic-5636fad8-20241010"; + exports.version = "19.0.0-www-classic-75dd053b-20241014"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index fe29ad3ddf..b4452a2715 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -8805,5 +8805,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-www-modern-5636fad8-20241010"; + exports.version = "19.0.0-www-modern-75dd053b-20241014"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 4c6a6b3e95..81eb99cfb7 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -57,6 +57,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableLegacyContextForFunctionComponents = dynamicFeatureFlags.disableLegacyContextForFunctionComponents, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, renameElementSymbol = dynamicFeatureFlags.renameElementSymbol, @@ -3364,13 +3365,13 @@ var currentResumableState = null, DefaultAsyncDispatcher = { getCacheForType: function () { throw Error(formatProdErrorMessage(248)); - }, - getOwner: function () { - return null; } - }, - prefix, - suffix; + }; +disableStringRefs || + (DefaultAsyncDispatcher.getOwner = function () { + return null; + }); +var prefix, suffix; function describeBuiltInComponentFrame(name) { if (void 0 === prefix) try { @@ -5911,4 +5912,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-www-classic-5636fad8-20241010"; +exports.version = "19.0.0-www-classic-75dd053b-20241014"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index bd2c873814..a9c6961a2f 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -55,6 +55,7 @@ function formatProdErrorMessage(code) { var dynamicFeatureFlags = require("ReactFeatureFlags"), disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, renameElementSymbol = dynamicFeatureFlags.renameElementSymbol, @@ -3354,13 +3355,13 @@ var currentResumableState = null, DefaultAsyncDispatcher = { getCacheForType: function () { throw Error(formatProdErrorMessage(248)); - }, - getOwner: function () { - return null; } - }, - prefix, - suffix; + }; +disableStringRefs || + (DefaultAsyncDispatcher.getOwner = function () { + return null; + }); +var prefix, suffix; function describeBuiltInComponentFrame(name) { if (void 0 === prefix) try { @@ -5823,4 +5824,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-www-modern-5636fad8-20241010"; +exports.version = "19.0.0-www-modern-75dd053b-20241014"; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js index a1d10862ce..b6d0bf3609 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js @@ -40,6 +40,7 @@ var React = require("react"), dynamicFeatureFlags = require("ReactFeatureFlags"), disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, renameElementSymbol = dynamicFeatureFlags.renameElementSymbol, @@ -3241,13 +3242,13 @@ var currentResumableState = null, DefaultAsyncDispatcher = { getCacheForType: function () { throw Error("Not implemented."); - }, - getOwner: function () { - return null; } - }, - prefix, - suffix; + }; +disableStringRefs || + (DefaultAsyncDispatcher.getOwner = function () { + return null; + }); +var prefix, suffix; function describeBuiltInComponentFrame(name) { if (void 0 === prefix) try { diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 9b952e8052..db96cfb6af 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -8748,6 +8748,7 @@ __DEV__ && ); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -12740,11 +12741,13 @@ __DEV__ && } else finishedWork.refCleanup = ref(instanceToUse); else - ref.hasOwnProperty("current") || - error$jscomp$0( - "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", - getComponentNameFromFiber(finishedWork) - ), + disableStringRefs && "string" === typeof ref + ? error$jscomp$0("String refs are no longer supported.") + : ref.hasOwnProperty("current") || + error$jscomp$0( + "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", + getComponentNameFromFiber(finishedWork) + ), (ref.current = instanceToUse); } } @@ -16647,7 +16650,7 @@ __DEV__ && unitOfWork, entangledRenderLanes )); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) @@ -16655,7 +16658,7 @@ __DEV__ && } function replaySuspendedUnitOfWork(unitOfWork) { var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -24309,6 +24312,7 @@ __DEV__ && dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -28105,11 +28109,11 @@ __DEV__ && : flushSyncErrorInBuildsThatSupportLegacyMode; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-5636fad8-20241010" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-75dd053b-20241014" !== 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.0.0-www-classic-5636fad8-20241010\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-75dd053b-20241014\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -28153,11 +28157,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-5636fad8-20241010", + version: "19.0.0-www-classic-75dd053b-20241014", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28976,5 +28980,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-5636fad8-20241010"; + exports.version = "19.0.0-www-classic-75dd053b-20241014"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index c1157d3037..b30d57445d 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -8211,6 +8211,7 @@ __DEV__ && ); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -12292,11 +12293,13 @@ __DEV__ && } else finishedWork.refCleanup = ref(instanceToUse); else - ref.hasOwnProperty("current") || - error$jscomp$0( - "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", - getComponentNameFromFiber(finishedWork) - ), + disableStringRefs && "string" === typeof ref + ? error$jscomp$0("String refs are no longer supported.") + : ref.hasOwnProperty("current") || + error$jscomp$0( + "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", + getComponentNameFromFiber(finishedWork) + ), (ref.current = instanceToUse); } } @@ -16112,7 +16115,7 @@ __DEV__ && unitOfWork, entangledRenderLanes )); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) @@ -16120,7 +16123,7 @@ __DEV__ && } function replaySuspendedUnitOfWork(unitOfWork) { var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -23430,6 +23433,7 @@ __DEV__ && dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -27219,11 +27223,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-5636fad8-20241010" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-75dd053b-20241014" !== 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.0.0-www-modern-5636fad8-20241010\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-75dd053b-20241014\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27266,11 +27270,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-5636fad8-20241010", + version: "19.0.0-www-modern-75dd053b-20241014", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28041,5 +28045,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-5636fad8-20241010"; + exports.version = "19.0.0-www-modern-75dd053b-20241014"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 7bee7046e7..6fad3f7527 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -40,6 +40,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -5776,6 +5777,7 @@ function markRef(current, workInProgress) { throw Error(formatProdErrorMessage(284)); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -6086,7 +6088,7 @@ function finishClassComponent( ) ); shouldUpdate = workInProgress.stateNode; - current = workInProgress; + disableStringRefs || (current = workInProgress); var nextChildren = didCaptureError && "function" !== typeof Component.getDerivedStateFromError ? null @@ -10970,19 +10972,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin( } } var DefaultAsyncDispatcher = { - getCacheForType: function (resourceType) { - var cache = readContext(CacheContext), - cacheForType = cache.data.get(resourceType); - void 0 === cacheForType && - ((cacheForType = resourceType()), - cache.data.set(resourceType, cacheForType)); - return cacheForType; - }, - getOwner: function () { - return current; - } - }, - COMPONENT_TYPE = 0, + getCacheForType: function (resourceType) { + var cache = readContext(CacheContext), + cacheForType = cache.data.get(resourceType); + void 0 === cacheForType && + ((cacheForType = resourceType()), + cache.data.set(resourceType, cacheForType)); + return cacheForType; + } +}; +disableStringRefs || + (DefaultAsyncDispatcher.getOwner = function () { + return current; + }); +var COMPONENT_TYPE = 0, HAS_PSEUDO_CLASS_TYPE = 1, ROLE_TYPE = 2, TEST_NAME_TYPE = 3, @@ -11730,7 +11733,7 @@ function prepareFreshStack(root, lanes) { function handleThrow(root, thrownValue) { currentlyRenderingFiber$1 = null; ReactSharedInternals.H = ContextOnlyDispatcher; - current = null; + disableStringRefs || (current = null); thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = @@ -11968,7 +11971,7 @@ function workLoopConcurrent() { } function performUnitOfWork(unitOfWork) { var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes); - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -12021,7 +12024,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { resetWorkInProgress(next, entangledRenderLanes)), (next = beginWork(current$jscomp$0, next, entangledRenderLanes)); } - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -17741,14 +17744,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1804 = React.version; if ( - "19.0.0-www-classic-5636fad8-20241010" !== + "19.0.0-www-classic-75dd053b-20241014" !== isomorphicReactPackageVersion$jscomp$inline_1804 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1804, - "19.0.0-www-classic-5636fad8-20241010" + "19.0.0-www-classic-75dd053b-20241014" ) ); function flushSyncFromReconciler(fn) { @@ -17793,11 +17796,11 @@ Internals.Events = [ ]; var internals$jscomp$inline_2322 = { bundleType: 0, - version: "19.0.0-www-classic-5636fad8-20241010", + version: "19.0.0-www-classic-75dd053b-20241014", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2323 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18404,4 +18407,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-5636fad8-20241010"; +exports.version = "19.0.0-www-classic-75dd053b-20241014"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 33d15f5139..6fc15ce9e5 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -38,6 +38,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -5470,6 +5471,7 @@ function markRef(current, workInProgress) { throw Error(formatProdErrorMessage(284)); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -5782,7 +5784,7 @@ function updateClassComponent( nextProps = 0 !== (workInProgress.flags & 128); context || nextProps ? ((context = workInProgress.stateNode), - (current = workInProgress), + disableStringRefs || (current = workInProgress), (Component = nextProps && "function" !== typeof Component.getDerivedStateFromError ? null @@ -10514,19 +10516,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin( } } var DefaultAsyncDispatcher = { - getCacheForType: function (resourceType) { - var cache = readContext(CacheContext), - cacheForType = cache.data.get(resourceType); - void 0 === cacheForType && - ((cacheForType = resourceType()), - cache.data.set(resourceType, cacheForType)); - return cacheForType; - }, - getOwner: function () { - return current; - } - }, - COMPONENT_TYPE = 0, + getCacheForType: function (resourceType) { + var cache = readContext(CacheContext), + cacheForType = cache.data.get(resourceType); + void 0 === cacheForType && + ((cacheForType = resourceType()), + cache.data.set(resourceType, cacheForType)); + return cacheForType; + } +}; +disableStringRefs || + (DefaultAsyncDispatcher.getOwner = function () { + return current; + }); +var COMPONENT_TYPE = 0, HAS_PSEUDO_CLASS_TYPE = 1, ROLE_TYPE = 2, TEST_NAME_TYPE = 3, @@ -11249,7 +11252,7 @@ function prepareFreshStack(root, lanes) { function handleThrow(root, thrownValue) { currentlyRenderingFiber$1 = null; ReactSharedInternals.H = ContextOnlyDispatcher; - current = null; + disableStringRefs || (current = null); thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = @@ -11487,7 +11490,7 @@ function workLoopConcurrent() { } function performUnitOfWork(unitOfWork) { var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes); - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -11536,7 +11539,7 @@ function replaySuspendedUnitOfWork(unitOfWork) { resetWorkInProgress(next, entangledRenderLanes)), (next = beginWork(current$jscomp$0, next, entangledRenderLanes)); } - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -17109,14 +17112,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1775 = React.version; if ( - "19.0.0-www-modern-5636fad8-20241010" !== + "19.0.0-www-modern-75dd053b-20241014" !== isomorphicReactPackageVersion$jscomp$inline_1775 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1775, - "19.0.0-www-modern-5636fad8-20241010" + "19.0.0-www-modern-75dd053b-20241014" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17132,25 +17135,25 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2313 = { +var internals$jscomp$inline_2314 = { bundleType: 0, - version: "19.0.0-www-modern-5636fad8-20241010", + version: "19.0.0-www-modern-75dd053b-20241014", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2314 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2315 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2314.isDisabled && - hook$jscomp$inline_2314.supportsFiber + !hook$jscomp$inline_2315.isDisabled && + hook$jscomp$inline_2315.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2314.inject( - internals$jscomp$inline_2313 + (rendererID = hook$jscomp$inline_2315.inject( + internals$jscomp$inline_2314 )), - (injectedHook = hook$jscomp$inline_2314); + (injectedHook = hook$jscomp$inline_2315); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17652,4 +17655,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-5636fad8-20241010"; +exports.version = "19.0.0-www-modern-75dd053b-20241014"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index ef17779e21..884b8d3424 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -6956,6 +6956,7 @@ __DEV__ && ); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -11031,11 +11032,13 @@ __DEV__ && } else finishedWork.refCleanup = ref(instanceToUse); else - ref.hasOwnProperty("current") || - error$jscomp$0( - "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", - getComponentNameFromFiber(finishedWork) - ), + disableStringRefs && "string" === typeof ref + ? error$jscomp$0("String refs are no longer supported.") + : ref.hasOwnProperty("current") || + error$jscomp$0( + "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", + getComponentNameFromFiber(finishedWork) + ), (ref.current = instanceToUse); } } @@ -14789,7 +14792,7 @@ __DEV__ && unitOfWork, entangledRenderLanes )); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) @@ -14797,7 +14800,7 @@ __DEV__ && } function replaySuspendedUnitOfWork(unitOfWork) { var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -16482,6 +16485,7 @@ __DEV__ && dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -19218,7 +19222,7 @@ __DEV__ && rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index 863f7f297f..dade219841 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -6461,6 +6461,7 @@ __DEV__ && ); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -10633,11 +10634,13 @@ __DEV__ && } else finishedWork.refCleanup = ref(instanceToUse); else - ref.hasOwnProperty("current") || - error$jscomp$0( - "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", - getComponentNameFromFiber(finishedWork) - ), + disableStringRefs && "string" === typeof ref + ? error$jscomp$0("String refs are no longer supported.") + : ref.hasOwnProperty("current") || + error$jscomp$0( + "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", + getComponentNameFromFiber(finishedWork) + ), (ref.current = instanceToUse); } } @@ -14301,7 +14304,7 @@ __DEV__ && unitOfWork, entangledRenderLanes )); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === current ? completeUnitOfWork(unitOfWork) @@ -14309,7 +14312,7 @@ __DEV__ && } function replaySuspendedUnitOfWork(unitOfWork) { var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork); - resetCurrentFiber(); + disableStringRefs || resetCurrentFiber(); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -15892,6 +15895,7 @@ __DEV__ && dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -18609,7 +18613,7 @@ __DEV__ && rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index 474849773e..12270c9ee8 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -4416,6 +4416,7 @@ module.exports = function ($$$config) { throw Error(formatProdErrorMessage(284)); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -4726,7 +4727,7 @@ module.exports = function ($$$config) { ) ); shouldUpdate = workInProgress.stateNode; - current = workInProgress; + disableStringRefs || (current = workInProgress); var nextChildren = didCaptureError && "function" !== typeof Component.getDerivedStateFromError @@ -10364,7 +10365,7 @@ module.exports = function ($$$config) { function handleThrow(root, thrownValue) { currentlyRenderingFiber$1 = null; ReactSharedInternals.H = ContextOnlyDispatcher; - current = null; + disableStringRefs || (current = null); thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = @@ -10612,7 +10613,7 @@ module.exports = function ($$$config) { unitOfWork, entangledRenderLanes ); - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -10671,7 +10672,7 @@ module.exports = function ($$$config) { resetWorkInProgress(next, entangledRenderLanes)), (next = beginWork(current$jscomp$0, next, entangledRenderLanes)); } - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -11692,6 +11693,7 @@ module.exports = function ($$$config) { dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -12438,12 +12440,13 @@ module.exports = function ($$$config) { ((cacheForType = resourceType()), cache.data.set(resourceType, cacheForType)); return cacheForType; - }, - getOwner: function () { - return current; } - }, - COMPONENT_TYPE = 0, + }; + disableStringRefs || + (DefaultAsyncDispatcher.getOwner = function () { + return current; + }); + var COMPONENT_TYPE = 0, HAS_PSEUDO_CLASS_TYPE = 1, ROLE_TYPE = 2, TEST_NAME_TYPE = 3, @@ -12854,7 +12857,7 @@ module.exports = function ($$$config) { rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index 6c665d4304..db85448145 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -4130,6 +4130,7 @@ module.exports = function ($$$config) { throw Error(formatProdErrorMessage(284)); if (null === current || current.ref !== ref) { if ( + !disableStringRefs && null !== current && ((current = current.ref), "function" === typeof current && @@ -4448,7 +4449,7 @@ module.exports = function ($$$config) { nextProps = 0 !== (workInProgress.flags & 128); context || nextProps ? ((context = workInProgress.stateNode), - (current = workInProgress), + disableStringRefs || (current = workInProgress), (Component = nextProps && "function" !== typeof Component.getDerivedStateFromError ? null @@ -9919,7 +9920,7 @@ module.exports = function ($$$config) { function handleThrow(root, thrownValue) { currentlyRenderingFiber$1 = null; ReactSharedInternals.H = ContextOnlyDispatcher; - current = null; + disableStringRefs || (current = null); thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = @@ -10167,7 +10168,7 @@ module.exports = function ($$$config) { unitOfWork, entangledRenderLanes ); - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -10222,7 +10223,7 @@ module.exports = function ($$$config) { resetWorkInProgress(next, entangledRenderLanes)), (next = beginWork(current$jscomp$0, next, entangledRenderLanes)); } - current = null; + disableStringRefs || (current = null); unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } @@ -11199,6 +11200,7 @@ module.exports = function ($$$config) { dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, + disableStringRefs = dynamicFeatureFlags.disableStringRefs, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, enableDeferRootSchedulingToMicrotask = dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, @@ -11941,12 +11943,13 @@ module.exports = function ($$$config) { ((cacheForType = resourceType()), cache.data.set(resourceType, cacheForType)); return cacheForType; - }, - getOwner: function () { - return current; } - }, - COMPONENT_TYPE = 0, + }; + disableStringRefs || + (DefaultAsyncDispatcher.getOwner = function () { + return current; + }); + var COMPONENT_TYPE = 0, HAS_PSEUDO_CLASS_TYPE = 1, ROLE_TYPE = 2, TEST_NAME_TYPE = 3, @@ -12344,7 +12347,7 @@ module.exports = function ($$$config) { rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index aa75afef05..1970d6978f 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -14961,11 +14961,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-5636fad8-20241010", + version: "19.0.0-www-classic-75dd053b-20241014", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15100,5 +15100,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.0.0-www-classic-5636fad8-20241010"; + exports.version = "19.0.0-www-classic-75dd053b-20241014"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index fdbfcf4cb1..e3c8caadf5 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -14961,11 +14961,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-5636fad8-20241010", + version: "19.0.0-www-modern-75dd053b-20241014", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010" + reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15100,5 +15100,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.0.0-www-modern-5636fad8-20241010"; + exports.version = "19.0.0-www-modern-75dd053b-20241014"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index d0d928ca43..83c1e0f6ba 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.0.0-www-classic-5636fad8-20241010 \ No newline at end of file +19.0.0-www-classic-75dd053b-20241014 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index 3af043eaeb..6b98ccba20 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.0.0-www-modern-5636fad8-20241010 \ No newline at end of file +19.0.0-www-modern-75dd053b-20241014 \ No newline at end of file