From 8a139482d4af4987743dd0413b5088103d188f0f Mon Sep 17 00:00:00 2001 From: eps1lon Date: Thu, 12 Jan 2023 12:26:00 +0000 Subject: [PATCH] Don't warn about concurrently rendering contexts if we finished rendering (#22797) Closes https://github.com/facebook/react/issues/22796 DiffTrain build for [555ece0cd14779abd5a1fc50f71625f9ada42bef](https://github.com/facebook/react/commit/555ece0cd14779abd5a1fc50f71625f9ada42bef) [View git log for this commit](https://github.com/facebook/react/commits/555ece0cd14779abd5a1fc50f71625f9ada42bef) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/REVISION_TRANSFORMS | 2 +- compiled/facebook-www/React-dev.classic.js | 2 +- compiled/facebook-www/React-dev.modern.js | 2 +- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.classic.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 20 +++++++++++++++++-- compiled/facebook-www/ReactART-dev.modern.js | 20 +++++++++++++++++-- .../facebook-www/ReactART-prod.classic.js | 6 +++--- compiled/facebook-www/ReactART-prod.modern.js | 6 +++--- compiled/facebook-www/ReactDOM-dev.classic.js | 19 ++++++++++++++++-- compiled/facebook-www/ReactDOM-dev.modern.js | 19 ++++++++++++++++-- .../facebook-www/ReactDOM-prod.classic.js | 8 ++++---- compiled/facebook-www/ReactDOM-prod.modern.js | 8 ++++---- .../ReactDOM-profiling.classic.js | 8 ++++---- .../facebook-www/ReactDOM-profiling.modern.js | 8 ++++---- .../ReactDOMServer-dev.classic.js | 2 +- .../facebook-www/ReactDOMServer-dev.modern.js | 2 +- .../ReactDOMServer-prod.classic.js | 2 +- .../ReactDOMServer-prod.modern.js | 2 +- .../ReactDOMTesting-dev.classic.js | 19 ++++++++++++++++-- .../ReactDOMTesting-dev.modern.js | 19 ++++++++++++++++-- .../ReactDOMTesting-prod.classic.js | 8 ++++---- .../ReactDOMTesting-prod.modern.js | 8 ++++---- .../ReactTestRenderer-dev.classic.js | 20 +++++++++++++++++-- .../ReactTestRenderer-dev.modern.js | 20 +++++++++++++++++-- 28 files changed, 182 insertions(+), 58 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index c8b94ee1169f5..c0ebbe6b47255 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -0fce6bb498357feb4465859912004b2e20fe7084 +555ece0cd14779abd5a1fc50f71625f9ada42bef diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index c8b94ee1169f5..c0ebbe6b47255 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -0fce6bb498357feb4465859912004b2e20fe7084 +555ece0cd14779abd5a1fc50f71625f9ada42bef diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 835bd4101f980..63115254a7798 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-classic-0fce6bb49-20230111"; +var ReactVersion = "18.3.0-www-classic-555ece0cd-20230112"; // ATTENTION // When adding new symbols to this file, diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index f9a30d5b9329c..a019a156276c6 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-modern-0fce6bb49-20230111"; +var ReactVersion = "18.3.0-www-modern-555ece0cd-20230112"; // ATTENTION // When adding new symbols to this file, diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 6fb13341bc194..78f25a925cb10 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -643,4 +643,4 @@ exports.useSyncExternalStore = function( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-classic-0fce6bb49-20230111"; +exports.version = "18.3.0-www-classic-555ece0cd-20230112"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index d5acc67127fa9..482c439bdf2f2 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -635,4 +635,4 @@ exports.useSyncExternalStore = function( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-modern-0fce6bb49-20230111"; +exports.version = "18.3.0-www-modern-555ece0cd-20230112"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index 56f22b6631e7e..b6d7b1e0c6158 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -654,7 +654,7 @@ exports.useSyncExternalStore = function( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-classic-0fce6bb49-20230111"; +exports.version = "18.3.0-www-classic-555ece0cd-20230112"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index a3258a6a18248..93abf35eaaff8 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -646,7 +646,7 @@ exports.useSyncExternalStore = function( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-modern-0fce6bb49-20230111"; +exports.version = "18.3.0-www-modern-555ece0cd-20230112"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 017fe677915cf..56302bf1d912f 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-classic-0fce6bb49-20230111"; +var ReactVersion = "18.3.0-www-classic-555ece0cd-20230112"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -16344,6 +16344,13 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null); + +var renderer2CursorDEV; + +{ + renderer2CursorDEV = createCursor(null); +} + var rendererSigil$1; { @@ -16382,6 +16389,8 @@ function pushProvider(providerFiber, context, nextValue) { context._currentValue2 = nextValue; { + push(renderer2CursorDEV, context._currentRenderer2, providerFiber); + if ( context._currentRenderer2 !== undefined && context._currentRenderer2 !== null && @@ -16399,7 +16408,6 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context, providerFiber) { var currentValue = valueCursor.current; - pop(valueCursor, providerFiber); { if (currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) { @@ -16407,7 +16415,15 @@ function popProvider(context, providerFiber) { } else { context._currentValue2 = currentValue; } + + { + var currentRenderer2 = renderer2CursorDEV.current; + pop(renderer2CursorDEV, providerFiber); + context._currentRenderer2 = currentRenderer2; + } } + + pop(valueCursor, providerFiber); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { // Update the child lanes of all the ancestors, including the alternates. diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 22301f04bb879..253bb2eeebcf0 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-modern-0fce6bb49-20230111"; +var ReactVersion = "18.3.0-www-modern-555ece0cd-20230112"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -16052,6 +16052,13 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null); + +var renderer2CursorDEV; + +{ + renderer2CursorDEV = createCursor(null); +} + var rendererSigil$1; { @@ -16090,6 +16097,8 @@ function pushProvider(providerFiber, context, nextValue) { context._currentValue2 = nextValue; { + push(renderer2CursorDEV, context._currentRenderer2, providerFiber); + if ( context._currentRenderer2 !== undefined && context._currentRenderer2 !== null && @@ -16107,7 +16116,6 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context, providerFiber) { var currentValue = valueCursor.current; - pop(valueCursor, providerFiber); { if (currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) { @@ -16115,7 +16123,15 @@ function popProvider(context, providerFiber) { } else { context._currentValue2 = currentValue; } + + { + var currentRenderer2 = renderer2CursorDEV.current; + pop(renderer2CursorDEV, providerFiber); + context._currentRenderer2 = currentRenderer2; + } } + + pop(valueCursor, providerFiber); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { // Update the child lanes of all the ancestors, including the alternates. diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index b5adce829ba58..06f3c47d8fe7c 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -4795,11 +4795,11 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context) { var currentValue = valueCursor.current; - pop(valueCursor); context._currentValue2 = currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED ? context._defaultValue : currentValue; + pop(valueCursor); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { for (; null !== parent; ) { @@ -9804,7 +9804,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "18.3.0-www-classic-0fce6bb49-20230111", + version: "18.3.0-www-classic-555ece0cd-20230112", rendererPackageName: "react-art" }; var internals$jscomp$inline_1318 = { @@ -9835,7 +9835,7 @@ var internals$jscomp$inline_1318 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-0fce6bb49-20230111" + reconcilerVersion: "18.3.0-next-555ece0cd-20230112" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1319 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 79dec1b47bcb7..11141f72bc567 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -4548,11 +4548,11 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context) { var currentValue = valueCursor.current; - pop(valueCursor); context._currentValue2 = currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED ? context._defaultValue : currentValue; + pop(valueCursor); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { for (; null !== parent; ) { @@ -9471,7 +9471,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "18.3.0-www-modern-0fce6bb49-20230111", + version: "18.3.0-www-modern-555ece0cd-20230112", rendererPackageName: "react-art" }; var internals$jscomp$inline_1309 = { @@ -9502,7 +9502,7 @@ var internals$jscomp$inline_1309 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-0fce6bb49-20230111" + reconcilerVersion: "18.3.0-next-555ece0cd-20230112" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1310 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 220aaa5361f6a..56b094c62749f 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -30982,6 +30982,12 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null); +var rendererCursorDEV; + +{ + rendererCursorDEV = createCursor(null); +} + var rendererSigil$1; { @@ -31020,6 +31026,8 @@ function pushProvider(providerFiber, context, nextValue) { context._currentValue = nextValue; { + push(rendererCursorDEV, context._currentRenderer, providerFiber); + if ( context._currentRenderer !== undefined && context._currentRenderer !== null && @@ -31037,7 +31045,6 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context, providerFiber) { var currentValue = valueCursor.current; - pop(valueCursor, providerFiber); { if (currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) { @@ -31045,7 +31052,15 @@ function popProvider(context, providerFiber) { } else { context._currentValue = currentValue; } + + { + var currentRenderer = rendererCursorDEV.current; + pop(rendererCursorDEV, providerFiber); + context._currentRenderer = currentRenderer; + } } + + pop(valueCursor, providerFiber); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { // Update the child lanes of all the ancestors, including the alternates. @@ -42690,7 +42705,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-0fce6bb49-20230111"; +var ReactVersion = "18.3.0-www-classic-555ece0cd-20230112"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 82ffc59d96825..2f02757220b5b 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -30725,6 +30725,12 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null); +var rendererCursorDEV; + +{ + rendererCursorDEV = createCursor(null); +} + var rendererSigil$1; { @@ -30763,6 +30769,8 @@ function pushProvider(providerFiber, context, nextValue) { context._currentValue = nextValue; { + push(rendererCursorDEV, context._currentRenderer, providerFiber); + if ( context._currentRenderer !== undefined && context._currentRenderer !== null && @@ -30780,7 +30788,6 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context, providerFiber) { var currentValue = valueCursor.current; - pop(valueCursor, providerFiber); { if (currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) { @@ -30788,7 +30795,15 @@ function popProvider(context, providerFiber) { } else { context._currentValue = currentValue; } + + { + var currentRenderer = rendererCursorDEV.current; + pop(rendererCursorDEV, providerFiber); + context._currentRenderer = currentRenderer; + } } + + pop(valueCursor, providerFiber); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { // Update the child lanes of all the ancestors, including the alternates. @@ -42414,7 +42429,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-0fce6bb49-20230111"; +var ReactVersion = "18.3.0-www-modern-555ece0cd-20230112"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 8e322c3e23320..9037eda83e1e2 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -9511,11 +9511,11 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context) { var currentValue = valueCursor.current; - pop(valueCursor); context._currentValue = currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED ? context._defaultValue : currentValue; + pop(valueCursor); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { for (; null !== parent; ) { @@ -15534,7 +15534,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1750 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-0fce6bb49-20230111", + version: "18.3.0-www-classic-555ece0cd-20230112", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2134 = { @@ -15564,7 +15564,7 @@ var internals$jscomp$inline_2134 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-0fce6bb49-20230111" + reconcilerVersion: "18.3.0-next-555ece0cd-20230112" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2135 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15806,4 +15806,4 @@ exports.unstable_renderSubtreeIntoContainer = function( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-0fce6bb49-20230111"; +exports.version = "18.3.0-next-555ece0cd-20230112"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 7c253881ce03c..ecd3c6754adf6 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -9308,11 +9308,11 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context) { var currentValue = valueCursor.current; - pop(valueCursor); context._currentValue = currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED ? context._defaultValue : currentValue; + pop(valueCursor); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { for (; null !== parent; ) { @@ -15095,7 +15095,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1718 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-0fce6bb49-20230111", + version: "18.3.0-www-modern-555ece0cd-20230112", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2109 = { @@ -15126,7 +15126,7 @@ var internals$jscomp$inline_2109 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-0fce6bb49-20230111" + reconcilerVersion: "18.3.0-next-555ece0cd-20230112" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2110 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15314,4 +15314,4 @@ exports.unstable_flushControlled = function(fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-0fce6bb49-20230111"; +exports.version = "18.3.0-next-555ece0cd-20230112"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 51b5aca9dd865..1ed4b27fcd49a 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -9761,11 +9761,11 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context) { var currentValue = valueCursor.current; - pop(valueCursor); context._currentValue = currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED ? context._defaultValue : currentValue; + pop(valueCursor); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { for (; null !== parent; ) { @@ -16304,7 +16304,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1824 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-0fce6bb49-20230111", + version: "18.3.0-www-classic-555ece0cd-20230112", rendererPackageName: "react-dom" }; (function(internals) { @@ -16348,7 +16348,7 @@ var devToolsConfig$jscomp$inline_1824 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-0fce6bb49-20230111" + reconcilerVersion: "18.3.0-next-555ece0cd-20230112" }); assign(Internals, { ReactBrowserEventEmitter: { @@ -16577,7 +16577,7 @@ exports.unstable_renderSubtreeIntoContainer = function( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-0fce6bb49-20230111"; +exports.version = "18.3.0-next-555ece0cd-20230112"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index 6c9c667cd5bad..e4229c76ee9e8 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -9548,11 +9548,11 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context) { var currentValue = valueCursor.current; - pop(valueCursor); context._currentValue = currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED ? context._defaultValue : currentValue; + pop(valueCursor); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { for (; null !== parent; ) { @@ -15855,7 +15855,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1792 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-0fce6bb49-20230111", + version: "18.3.0-www-modern-555ece0cd-20230112", rendererPackageName: "react-dom" }; (function(internals) { @@ -15900,7 +15900,7 @@ var devToolsConfig$jscomp$inline_1792 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-0fce6bb49-20230111" + reconcilerVersion: "18.3.0-next-555ece0cd-20230112" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function(children, container) { @@ -16075,7 +16075,7 @@ exports.unstable_flushControlled = function(fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-0fce6bb49-20230111"; +exports.version = "18.3.0-next-555ece0cd-20230112"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 233606300b27c..a7bad046c3949 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); -var ReactVersion = "18.3.0-www-classic-0fce6bb49-20230111"; +var ReactVersion = "18.3.0-www-classic-555ece0cd-20230112"; // This refers to a WWW module. var warningWWW = require("warning"); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 5f70c7ca81ec7..18c3a96977593 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); -var ReactVersion = "18.3.0-www-modern-0fce6bb49-20230111"; +var ReactVersion = "18.3.0-www-modern-555ece0cd-20230112"; // This refers to a WWW module. var warningWWW = require("warning"); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index d801d39bedc46..78764b33f16db 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -3633,4 +3633,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 = "18.3.0-www-classic-0fce6bb49-20230111"; +exports.version = "18.3.0-www-classic-555ece0cd-20230112"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index b2158433e3e18..e4c3d03a41076 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -3546,4 +3546,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 = "18.3.0-www-modern-0fce6bb49-20230111"; +exports.version = "18.3.0-www-modern-555ece0cd-20230112"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 2b2a6ee56ad3f..e71ed7f314251 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -21080,6 +21080,12 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null); +var rendererCursorDEV; + +{ + rendererCursorDEV = createCursor(null); +} + var rendererSigil$1; { @@ -21118,6 +21124,8 @@ function pushProvider(providerFiber, context, nextValue) { context._currentValue = nextValue; { + push(rendererCursorDEV, context._currentRenderer, providerFiber); + if ( context._currentRenderer !== undefined && context._currentRenderer !== null && @@ -21135,7 +21143,6 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context, providerFiber) { var currentValue = valueCursor.current; - pop(valueCursor, providerFiber); { if (currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) { @@ -21143,7 +21150,15 @@ function popProvider(context, providerFiber) { } else { context._currentValue = currentValue; } + + { + var currentRenderer = rendererCursorDEV.current; + pop(rendererCursorDEV, providerFiber); + context._currentRenderer = currentRenderer; + } } + + pop(valueCursor, providerFiber); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { // Update the child lanes of all the ancestors, including the alternates. @@ -31191,7 +31206,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-0fce6bb49-20230111"; +var ReactVersion = "18.3.0-www-classic-555ece0cd-20230112"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 1103c63bda62f..19bb8c770e2f9 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -28526,6 +28526,12 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null); +var rendererCursorDEV; + +{ + rendererCursorDEV = createCursor(null); +} + var rendererSigil$1; { @@ -28564,6 +28570,8 @@ function pushProvider(providerFiber, context, nextValue) { context._currentValue = nextValue; { + push(rendererCursorDEV, context._currentRenderer, providerFiber); + if ( context._currentRenderer !== undefined && context._currentRenderer !== null && @@ -28581,7 +28589,6 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context, providerFiber) { var currentValue = valueCursor.current; - pop(valueCursor, providerFiber); { if (currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) { @@ -28589,7 +28596,15 @@ function popProvider(context, providerFiber) { } else { context._currentValue = currentValue; } + + { + var currentRenderer = rendererCursorDEV.current; + pop(rendererCursorDEV, providerFiber); + context._currentRenderer = currentRenderer; + } } + + pop(valueCursor, providerFiber); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { // Update the child lanes of all the ancestors, including the alternates. @@ -38504,7 +38519,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-0fce6bb49-20230111"; +var ReactVersion = "18.3.0-www-modern-555ece0cd-20230112"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 9a4b09325542f..71fddf37a57bb 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -5868,11 +5868,11 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context) { var currentValue = valueCursor.current; - pop(valueCursor); context._currentValue = currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED ? context._defaultValue : currentValue; + pop(valueCursor); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { for (; null !== parent; ) { @@ -11328,7 +11328,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1518 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-0fce6bb49-20230111", + version: "18.3.0-www-classic-555ece0cd-20230112", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2047 = { @@ -11358,7 +11358,7 @@ var internals$jscomp$inline_2047 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-0fce6bb49-20230111" + reconcilerVersion: "18.3.0-next-555ece0cd-20230112" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2048 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -14847,4 +14847,4 @@ exports.unstable_renderSubtreeIntoContainer = function( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-0fce6bb49-20230111"; +exports.version = "18.3.0-next-555ece0cd-20230112"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index b57c8c3704569..f773877994a10 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -8827,11 +8827,11 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context) { var currentValue = valueCursor.current; - pop(valueCursor); context._currentValue = currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED ? context._defaultValue : currentValue; + pop(valueCursor); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { for (; null !== parent; ) { @@ -13967,7 +13967,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1673 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-0fce6bb49-20230111", + version: "18.3.0-www-modern-555ece0cd-20230112", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2072 = { @@ -13998,7 +13998,7 @@ var internals$jscomp$inline_2072 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-0fce6bb49-20230111" + reconcilerVersion: "18.3.0-next-555ece0cd-20230112" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2073 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -14321,4 +14321,4 @@ exports.unstable_flushControlled = function(fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-0fce6bb49-20230111"; +exports.version = "18.3.0-next-555ece0cd-20230112"; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 58e7e7ee88915..2818a504c2f19 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -14291,6 +14291,13 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null); + +var renderer2CursorDEV; + +{ + renderer2CursorDEV = createCursor(null); +} + var rendererSigil$1; { @@ -14329,6 +14336,8 @@ function pushProvider(providerFiber, context, nextValue) { context._currentValue2 = nextValue; { + push(renderer2CursorDEV, context._currentRenderer2, providerFiber); + if ( context._currentRenderer2 !== undefined && context._currentRenderer2 !== null && @@ -14346,7 +14355,6 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context, providerFiber) { var currentValue = valueCursor.current; - pop(valueCursor, providerFiber); { if (currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) { @@ -14354,7 +14362,15 @@ function popProvider(context, providerFiber) { } else { context._currentValue2 = currentValue; } + + { + var currentRenderer2 = renderer2CursorDEV.current; + pop(renderer2CursorDEV, providerFiber); + context._currentRenderer2 = currentRenderer2; + } } + + pop(valueCursor, providerFiber); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { // Update the child lanes of all the ancestors, including the alternates. @@ -23887,7 +23903,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-0fce6bb49-20230111"; +var ReactVersion = "18.3.0-www-classic-555ece0cd-20230112"; // Might add PROFILE later. diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index c05dbd0fafed0..3a2a3bacb0b5a 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -14291,6 +14291,13 @@ function beginWork(current, workInProgress, renderLanes) { } var valueCursor = createCursor(null); + +var renderer2CursorDEV; + +{ + renderer2CursorDEV = createCursor(null); +} + var rendererSigil$1; { @@ -14329,6 +14336,8 @@ function pushProvider(providerFiber, context, nextValue) { context._currentValue2 = nextValue; { + push(renderer2CursorDEV, context._currentRenderer2, providerFiber); + if ( context._currentRenderer2 !== undefined && context._currentRenderer2 !== null && @@ -14346,7 +14355,6 @@ function pushProvider(providerFiber, context, nextValue) { } function popProvider(context, providerFiber) { var currentValue = valueCursor.current; - pop(valueCursor, providerFiber); { if (currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED) { @@ -14354,7 +14362,15 @@ function popProvider(context, providerFiber) { } else { context._currentValue2 = currentValue; } + + { + var currentRenderer2 = renderer2CursorDEV.current; + pop(renderer2CursorDEV, providerFiber); + context._currentRenderer2 = currentRenderer2; + } } + + pop(valueCursor, providerFiber); } function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { // Update the child lanes of all the ancestors, including the alternates. @@ -23887,7 +23903,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-0fce6bb49-20230111"; +var ReactVersion = "18.3.0-www-modern-555ece0cd-20230112"; // Might add PROFILE later.