From fb3bede17d7d33daca0d46fd0e39b4c4fbf5b651 Mon Sep 17 00:00:00 2001 From: acdlite Date: Thu, 18 Apr 2024 17:42:33 +0000 Subject: [PATCH] Support writing to this.refs from userspace (#28867) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, the `refs` property of a class component instance was read-only by user code — only React could write to it, and until/unless a string ref was used, it pointed to a shared empty object that was frozen in dev to prevent userspace mutations. Because string refs are deprecated, we want users to be able to codemod all their string refs to callback refs. The safest way to do this is to output a callback ref that assigns to `this.refs`. So to support this, we need to make `this.refs` writable by userspace. DiffTrain build for [ea24427d16f3ac9b0f3bb45cdc7919ac208130c9](https://github.com/facebook/react/commit/ea24427d16f3ac9b0f3bb45cdc7919ac208130c9) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/React-dev.classic.js | 14 ++++---------- compiled/facebook-www/React-dev.modern.js | 14 ++++---------- compiled/facebook-www/React-prod.classic.js | 9 ++++----- compiled/facebook-www/React-prod.modern.js | 9 ++++----- compiled/facebook-www/React-profiling.classic.js | 9 ++++----- compiled/facebook-www/React-profiling.modern.js | 9 ++++----- compiled/facebook-www/ReactART-dev.classic.js | 3 +-- compiled/facebook-www/ReactART-dev.modern.js | 3 +-- compiled/facebook-www/ReactART-prod.classic.js | 5 ++--- compiled/facebook-www/ReactART-prod.modern.js | 5 ++--- compiled/facebook-www/ReactDOM-dev.classic.js | 3 +-- compiled/facebook-www/ReactDOM-dev.modern.js | 3 +-- compiled/facebook-www/ReactDOM-prod.classic.js | 7 +++---- compiled/facebook-www/ReactDOM-prod.modern.js | 7 +++---- .../facebook-www/ReactDOM-profiling.classic.js | 7 +++---- compiled/facebook-www/ReactDOM-profiling.modern.js | 7 +++---- .../facebook-www/ReactDOMTesting-dev.classic.js | 3 +-- .../facebook-www/ReactDOMTesting-dev.modern.js | 3 +-- .../facebook-www/ReactDOMTesting-prod.classic.js | 9 ++++----- .../facebook-www/ReactDOMTesting-prod.modern.js | 9 ++++----- .../facebook-www/ReactTestRenderer-dev.classic.js | 3 +-- .../facebook-www/ReactTestRenderer-dev.modern.js | 3 +-- 23 files changed, 57 insertions(+), 89 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index ca495334c2..caf9c67854 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -da6ba53b10d8240fc251ba14a3e5878604d3dc7d +ea24427d16f3ac9b0f3bb45cdc7919ac208130c9 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 5268e1a186..aaa25a9b50 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -24,7 +24,7 @@ if (__DEV__) { ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var ReactVersion = "19.0.0-www-classic-dd15d2bd"; + var ReactVersion = "19.0.0-www-classic-830ece8b"; // ATTENTION // When adding new symbols to this file, @@ -233,20 +233,14 @@ if (__DEV__) { var assign = Object.assign; - var emptyObject = {}; - - { - Object.freeze(emptyObject); - } /** * Base class helpers for the updating state of a component. */ function Component(props, context, updater) { this.props = props; - this.context = context; // If a component has string refs, we will assign a different object later. - - this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the + this.context = context; + this.refs = {}; // We initialize the default updater but the real one gets injected by the // renderer. this.updater = updater || ReactNoopUpdateQueue; @@ -363,7 +357,7 @@ if (__DEV__) { this.props = props; this.context = context; // If a component has string refs, we will assign a different object later. - this.refs = emptyObject; + this.refs = {}; this.updater = updater || ReactNoopUpdateQueue; } diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 9d5c86f398..5d9ead8d66 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -24,7 +24,7 @@ if (__DEV__) { ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var ReactVersion = "19.0.0-www-modern-8003ee33"; + var ReactVersion = "19.0.0-www-modern-b720dc57"; // ATTENTION // When adding new symbols to this file, @@ -233,20 +233,14 @@ if (__DEV__) { var assign = Object.assign; - var emptyObject = {}; - - { - Object.freeze(emptyObject); - } /** * Base class helpers for the updating state of a component. */ function Component(props, context, updater) { this.props = props; - this.context = context; // If a component has string refs, we will assign a different object later. - - this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the + this.context = context; + this.refs = {}; // We initialize the default updater but the real one gets injected by the // renderer. this.updater = updater || ReactNoopUpdateQueue; @@ -363,7 +357,7 @@ if (__DEV__) { this.props = props; this.context = context; // If a component has string refs, we will assign a different object later. - this.refs = emptyObject; + this.refs = {}; this.updater = updater || ReactNoopUpdateQueue; } diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 150955cdef..0309cb4744 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -45,12 +45,11 @@ var ReactNoopUpdateQueue = { enqueueReplaceState: function () {}, enqueueSetState: function () {} }, - assign = Object.assign, - emptyObject = {}; + assign = Object.assign; function Component(props, context, updater) { this.props = props; this.context = context; - this.refs = emptyObject; + this.refs = {}; this.updater = updater || ReactNoopUpdateQueue; } Component.prototype.isReactComponent = {}; @@ -73,7 +72,7 @@ ComponentDummy.prototype = Component.prototype; function PureComponent(props, context, updater) { this.props = props; this.context = context; - this.refs = emptyObject; + this.refs = {}; this.updater = updater || ReactNoopUpdateQueue; } var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy()); @@ -695,4 +694,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-c379aa62"; +exports.version = "19.0.0-www-classic-69b8fc3f"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index af971f462a..c56c23ecb0 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -45,12 +45,11 @@ var ReactNoopUpdateQueue = { enqueueReplaceState: function () {}, enqueueSetState: function () {} }, - assign = Object.assign, - emptyObject = {}; + assign = Object.assign; function Component(props, context, updater) { this.props = props; this.context = context; - this.refs = emptyObject; + this.refs = {}; this.updater = updater || ReactNoopUpdateQueue; } Component.prototype.isReactComponent = {}; @@ -73,7 +72,7 @@ ComponentDummy.prototype = Component.prototype; function PureComponent(props, context, updater) { this.props = props; this.context = context; - this.refs = emptyObject; + this.refs = {}; this.updater = updater || ReactNoopUpdateQueue; } var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy()); @@ -695,4 +694,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-c379aa62"; +exports.version = "19.0.0-www-modern-69b8fc3f"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index c3c3d4b64e..278eaf051c 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -49,12 +49,11 @@ var ReactNoopUpdateQueue = { enqueueReplaceState: function () {}, enqueueSetState: function () {} }, - assign = Object.assign, - emptyObject = {}; + assign = Object.assign; function Component(props, context, updater) { this.props = props; this.context = context; - this.refs = emptyObject; + this.refs = {}; this.updater = updater || ReactNoopUpdateQueue; } Component.prototype.isReactComponent = {}; @@ -77,7 +76,7 @@ ComponentDummy.prototype = Component.prototype; function PureComponent(props, context, updater) { this.props = props; this.context = context; - this.refs = emptyObject; + this.refs = {}; this.updater = updater || ReactNoopUpdateQueue; } var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy()); @@ -699,7 +698,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-6d3239ac"; +exports.version = "19.0.0-www-classic-3379708b"; "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 3d064629f0..510da26df4 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -49,12 +49,11 @@ var ReactNoopUpdateQueue = { enqueueReplaceState: function () {}, enqueueSetState: function () {} }, - assign = Object.assign, - emptyObject = {}; + assign = Object.assign; function Component(props, context, updater) { this.props = props; this.context = context; - this.refs = emptyObject; + this.refs = {}; this.updater = updater || ReactNoopUpdateQueue; } Component.prototype.isReactComponent = {}; @@ -77,7 +76,7 @@ ComponentDummy.prototype = Component.prototype; function PureComponent(props, context, updater) { this.props = props; this.context = context; - this.refs = emptyObject; + this.refs = {}; this.updater = updater || ReactNoopUpdateQueue; } var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy()); @@ -699,7 +698,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-6d3239ac"; +exports.version = "19.0.0-www-modern-3379708b"; "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 342c4fb259..6cb2f1478e 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -66,7 +66,7 @@ if (__DEV__) { return self; } - var ReactVersion = "19.0.0-www-classic-033703c4"; + var ReactVersion = "19.0.0-www-classic-9f5bb472"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -13846,7 +13846,6 @@ if (__DEV__) { var instance = workInProgress.stateNode; instance.props = newProps; instance.state = workInProgress.memoizedState; - instance.refs = {}; initializeUpdateQueue(workInProgress); var contextType = ctor.contextType; diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 219bf5b18c..73821bb777 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -66,7 +66,7 @@ if (__DEV__) { return self; } - var ReactVersion = "19.0.0-www-modern-7fadda4f"; + var ReactVersion = "19.0.0-www-modern-a3d75b83"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -13574,7 +13574,6 @@ if (__DEV__) { var instance = workInProgress.stateNode; instance.props = newProps; instance.state = workInProgress.memoizedState; - instance.refs = {}; initializeUpdateQueue(workInProgress); var contextType = ctor.contextType; diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index 6b30d4e827..fe5261b342 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -3891,7 +3891,6 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { var instance = workInProgress.stateNode; instance.props = newProps; instance.state = workInProgress.memoizedState; - instance.refs = {}; initializeUpdateQueue(workInProgress); var contextType = ctor.contextType; "object" === typeof contextType && null !== contextType @@ -10619,7 +10618,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "19.0.0-www-classic-e5fcf28b", + version: "19.0.0-www-classic-3d35a032", rendererPackageName: "react-art" }; var internals$jscomp$inline_1322 = { @@ -10650,7 +10649,7 @@ var internals$jscomp$inline_1322 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-e5fcf28b" + reconcilerVersion: "19.0.0-www-classic-3d35a032" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1323 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index d61e2ae2de..2d6c0d7cea 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -4364,7 +4364,6 @@ function updateClassComponent( context = workInProgress.stateNode; context.props = nextProps; context.state = workInProgress.memoizedState; - context.refs = {}; initializeUpdateQueue(workInProgress); contextType = Component.contextType; context.context = @@ -10098,7 +10097,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "19.0.0-www-modern-20a4f736", + version: "19.0.0-www-modern-954d0f23", rendererPackageName: "react-art" }; var internals$jscomp$inline_1307 = { @@ -10129,7 +10128,7 @@ var internals$jscomp$inline_1307 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-20a4f736" + reconcilerVersion: "19.0.0-www-modern-954d0f23" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1308 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 11751ebf46..135172e48f 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -18627,7 +18627,6 @@ if (__DEV__) { var instance = workInProgress.stateNode; instance.props = newProps; instance.state = workInProgress.memoizedState; - instance.refs = {}; initializeUpdateQueue(workInProgress); var contextType = ctor.contextType; @@ -36253,7 +36252,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-classic-509be4f1"; + var ReactVersion = "19.0.0-www-classic-849b84c4"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 96f2e2abc2..62b67d709b 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -31723,7 +31723,6 @@ if (__DEV__) { var instance = workInProgress.stateNode; instance.props = newProps; instance.state = workInProgress.memoizedState; - instance.refs = {}; initializeUpdateQueue(workInProgress); var contextType = ctor.contextType; @@ -45769,7 +45768,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-modern-8b7a101a"; + var ReactVersion = "19.0.0-www-modern-1c20f055"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index fd403b0340..bf87fa1d9f 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -4742,7 +4742,6 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { var instance = workInProgress.stateNode; instance.props = newProps; instance.state = workInProgress.memoizedState; - instance.refs = {}; initializeUpdateQueue(workInProgress); var contextType = ctor.contextType; "object" === typeof contextType && null !== contextType @@ -17033,7 +17032,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1729 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-38c43cf6", + version: "19.0.0-www-classic-4f60324b", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2160 = { @@ -17063,7 +17062,7 @@ var internals$jscomp$inline_2160 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-38c43cf6" + reconcilerVersion: "19.0.0-www-classic-4f60324b" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2161 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17529,4 +17528,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-38c43cf6"; +exports.version = "19.0.0-www-classic-4f60324b"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 865b6063ae..0aed26c5bd 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -7796,7 +7796,6 @@ function updateClassComponent( context = workInProgress.stateNode; context.props = nextProps; context.state = workInProgress.memoizedState; - context.refs = {}; initializeUpdateQueue(workInProgress); contextType = Component.contextType; context.context = @@ -16395,7 +16394,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1722 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-1217c10a", + version: "19.0.0-www-modern-6bb7ac6f", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2162 = { @@ -16425,7 +16424,7 @@ var internals$jscomp$inline_2162 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-1217c10a" + reconcilerVersion: "19.0.0-www-modern-6bb7ac6f" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2163 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -16733,4 +16732,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-1217c10a"; +exports.version = "19.0.0-www-modern-6bb7ac6f"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 9b5a37ac8e..fb4088af91 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -4950,7 +4950,6 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { var instance = workInProgress.stateNode; instance.props = newProps; instance.state = workInProgress.memoizedState; - instance.refs = {}; initializeUpdateQueue(workInProgress); var contextType = ctor.contextType; "object" === typeof contextType && null !== contextType @@ -17781,7 +17780,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1815 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-a7d2fb9b", + version: "19.0.0-www-classic-6c23504d", rendererPackageName: "react-dom" }; (function (internals) { @@ -17825,7 +17824,7 @@ var devToolsConfig$jscomp$inline_1815 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-a7d2fb9b" + reconcilerVersion: "19.0.0-www-classic-6c23504d" }); var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog) @@ -18278,7 +18277,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-a7d2fb9b"; +exports.version = "19.0.0-www-classic-6c23504d"; "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 d5c6d25719..a09e71a285 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -8004,7 +8004,6 @@ function updateClassComponent( context = workInProgress.stateNode; context.props = nextProps; context.state = workInProgress.memoizedState; - context.refs = {}; initializeUpdateQueue(workInProgress); contextType = Component.contextType; context.context = @@ -17126,7 +17125,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1808 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-1e359311", + version: "19.0.0-www-modern-17bf9d88", rendererPackageName: "react-dom" }; (function (internals) { @@ -17170,7 +17169,7 @@ var devToolsConfig$jscomp$inline_1808 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-1e359311" + reconcilerVersion: "19.0.0-www-modern-17bf9d88" }); var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog) @@ -17465,7 +17464,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-1e359311"; +exports.version = "19.0.0-www-modern-17bf9d88"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index aad20e514f..6d5d236342 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -18756,7 +18756,6 @@ if (__DEV__) { var instance = workInProgress.stateNode; instance.props = newProps; instance.state = workInProgress.memoizedState; - instance.refs = {}; initializeUpdateQueue(workInProgress); var contextType = ctor.contextType; @@ -36869,7 +36868,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-classic-b18818ec"; + var ReactVersion = "19.0.0-www-classic-9967717c"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 2679d87ccd..5b6c8235d9 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -31852,7 +31852,6 @@ if (__DEV__) { var instance = workInProgress.stateNode; instance.props = newProps; instance.state = workInProgress.memoizedState; - instance.refs = {}; initializeUpdateQueue(workInProgress); var contextType = ctor.contextType; @@ -46517,7 +46516,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-modern-f9d107af"; + var ReactVersion = "19.0.0-www-modern-19d8d6f5"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 311a27eaac..8af972b5e6 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -4828,7 +4828,6 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) { var instance = workInProgress.stateNode; instance.props = newProps; instance.state = workInProgress.memoizedState; - instance.refs = {}; initializeUpdateQueue(workInProgress); var contextType = ctor.contextType; "object" === typeof contextType && null !== contextType @@ -12843,7 +12842,7 @@ function injectIntoDevTools(devToolsConfig) { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-8729eb10" + reconcilerVersion: "19.0.0-www-classic-15e7f7fc" }; if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) devToolsConfig = !1; @@ -17406,7 +17405,7 @@ Internals.Events = [ injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-8729eb10", + version: "19.0.0-www-classic-15e7f7fc", rendererPackageName: "react-dom" }); var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); @@ -17539,7 +17538,7 @@ assign(Internals, { injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-8729eb10", + version: "19.0.0-www-classic-15e7f7fc", rendererPackageName: "react-dom" }); exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = @@ -18006,4 +18005,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-8729eb10"; +exports.version = "19.0.0-www-classic-15e7f7fc"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index e8e0529332..cfc2211ebd 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -7941,7 +7941,6 @@ function updateClassComponent( context = workInProgress.stateNode; context.props = nextProps; context.state = workInProgress.memoizedState; - context.refs = {}; initializeUpdateQueue(workInProgress); contextType = Component.contextType; context.context = @@ -16129,7 +16128,7 @@ function injectIntoDevTools(devToolsConfig) { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-375fcad7" + reconcilerVersion: "19.0.0-www-modern-d7756861" }; if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) devToolsConfig = !1; @@ -16827,7 +16826,7 @@ Internals.Events = [ injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-375fcad7", + version: "19.0.0-www-modern-d7756861", rendererPackageName: "react-dom" }); if ("function" !== typeof require("ReactFiberErrorDialog").showErrorDialog) @@ -16835,7 +16834,7 @@ if ("function" !== typeof require("ReactFiberErrorDialog").showErrorDialog) injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-375fcad7", + version: "19.0.0-www-modern-d7756861", rendererPackageName: "react-dom" }); exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = @@ -17249,4 +17248,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-375fcad7"; +exports.version = "19.0.0-www-modern-d7756861"; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 23c4863139..42c24c7b75 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -12514,7 +12514,6 @@ if (__DEV__) { var instance = workInProgress.stateNode; instance.props = newProps; instance.state = workInProgress.memoizedState; - instance.refs = {}; initializeUpdateQueue(workInProgress); var contextType = ctor.contextType; @@ -26710,7 +26709,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-classic-a8d20193"; + var ReactVersion = "19.0.0-www-classic-b9c55e33"; /* * The `'' + value` pattern (used in perf-sensitive code) throws for Symbol diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 1e7dff8174..b25df1185c 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -12514,7 +12514,6 @@ if (__DEV__) { var instance = workInProgress.stateNode; instance.props = newProps; instance.state = workInProgress.memoizedState; - instance.refs = {}; initializeUpdateQueue(workInProgress); var contextType = ctor.contextType; @@ -26710,7 +26709,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-modern-a8d20193"; + var ReactVersion = "19.0.0-www-modern-b9c55e33"; /* * The `'' + value` pattern (used in perf-sensitive code) throws for Symbol