From 7d4aaba49519abb7b00836d5e27c17ab3a48c39a Mon Sep 17 00:00:00 2001 From: kassens Date: Mon, 15 Jul 2024 09:36:09 -0700 Subject: [PATCH] [native-fb] set consoleManagedByDevToolsDuringStrictMode flag to true (#30338) Reflecting D59232098. DiffTrain build for commit https://github.com/facebook/react/commit/fc1371f6bf656821e92c3c41bf65f58686504001. --- compiled-rn/VERSION_NATIVE_FB | 2 +- .../cjs/ReactTestRenderer-dev.js | 6 +-- .../cjs/ReactTestRenderer-prod.js | 6 +-- .../cjs/ReactTestRenderer-profiling.js | 6 +-- .../vendor/react/react/cjs/React-dev.js | 4 +- .../vendor/react/react/cjs/React-prod.js | 4 +- .../vendor/react/react/cjs/React-profiling.js | 4 +- .../Libraries/Renderer/REVISION | 2 +- .../implementations/ReactFabric-dev.fb.js | 40 +++++++---------- .../implementations/ReactFabric-prod.fb.js | 16 +++---- .../ReactFabric-profiling.fb.js | 16 +++---- .../ReactNativeRenderer-dev.fb.js | 44 ++++++++----------- .../ReactNativeRenderer-prod.fb.js | 20 +++------ .../ReactNativeRenderer-profiling.fb.js | 20 +++------ 14 files changed, 77 insertions(+), 113 deletions(-) diff --git a/compiled-rn/VERSION_NATIVE_FB b/compiled-rn/VERSION_NATIVE_FB index 8a7485cca405f..05c83ae4b0119 100644 --- a/compiled-rn/VERSION_NATIVE_FB +++ b/compiled-rn/VERSION_NATIVE_FB @@ -1 +1 @@ -19.0.0-native-fb-ff89ba73-20240712 \ No newline at end of file +19.0.0-native-fb-fc1371f6-20240715 \ No newline at end of file diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js index 763da9ed31570..15c05064a0174 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<19de64da095c2c7e3388344fab7cc610>> + * @generated SignedSource<<807d7defa7798acbd559251923830aa0>> */ "use strict"; @@ -15187,14 +15187,14 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-native-fb-ff89ba73-20240712" + reconcilerVersion: "19.0.0-native-fb-fc1371f6-20240715" }); })({ findFiberByHostInstance: function () { throw Error("TestRenderer does not support findFiberByHostInstance()"); }, bundleType: 1, - version: "19.0.0-native-fb-ff89ba73-20240712", + version: "19.0.0-native-fb-fc1371f6-20240715", rendererPackageName: "react-test-renderer" }); exports._Scheduler = Scheduler; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js index 403bc64c83328..3f8695c488605 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<4f9aad0039a58edc294ac1ffb35cf646>> + * @generated SignedSource<<41bfc6c5964719c61efcaacbfd9ccbe1>> */ "use strict"; @@ -9406,7 +9406,7 @@ var devToolsConfig$jscomp$inline_1034 = { throw Error("TestRenderer does not support findFiberByHostInstance()"); }, bundleType: 0, - version: "19.0.0-native-fb-ff89ba73-20240712", + version: "19.0.0-native-fb-fc1371f6-20240715", rendererPackageName: "react-test-renderer" }; var internals$jscomp$inline_1223 = { @@ -9437,7 +9437,7 @@ var internals$jscomp$inline_1223 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-native-fb-ff89ba73-20240712" + reconcilerVersion: "19.0.0-native-fb-fc1371f6-20240715" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1224 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js index 0d636187be6a9..9bf2ff0329791 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<50896144af79bc0d06cc1efa52989bd2>> */ "use strict"; @@ -10026,7 +10026,7 @@ var devToolsConfig$jscomp$inline_1117 = { throw Error("TestRenderer does not support findFiberByHostInstance()"); }, bundleType: 0, - version: "19.0.0-native-fb-ff89ba73-20240712", + version: "19.0.0-native-fb-fc1371f6-20240715", rendererPackageName: "react-test-renderer" }; (function (internals) { @@ -10070,7 +10070,7 @@ var devToolsConfig$jscomp$inline_1117 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-native-fb-ff89ba73-20240712" + reconcilerVersion: "19.0.0-native-fb-fc1371f6-20240715" }); exports._Scheduler = Scheduler; exports.act = act; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js index bf5412ec8c556..64f106b2dc342 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<05c7ee933513ad1b782df8f4f98b3a99>> + * @generated SignedSource<<9e43796dad26b65aef2351c647691b29>> */ "use strict"; @@ -1748,7 +1748,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-native-fb-ff89ba73-20240712"; + exports.version = "19.0.0-native-fb-fc1371f6-20240715"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js index f188c73a9bc3a..4fa1b15cafa26 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<3404547d78b70a55bb7651957a6be743>> + * @generated SignedSource<<46ebc18bdae76b802420ba85977104d3>> */ "use strict"; @@ -604,4 +604,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-native-fb-ff89ba73-20240712"; +exports.version = "19.0.0-native-fb-fc1371f6-20240715"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js index 99dd045d5e64a..e5273d80a540b 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<16f1655f4bb3c6d677aa7a304ac0af37>> + * @generated SignedSource<> */ "use strict"; @@ -608,7 +608,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-native-fb-ff89ba73-20240712"; +exports.version = "19.0.0-native-fb-fc1371f6-20240715"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION index 816b830a66161..728bf2437eff0 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION @@ -1 +1 @@ -ff89ba734668fdac06e8de476486830bbf9e0785 +fc1371f6bf656821e92c3c41bf65f58686504001 diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js index 14e95e00e39ed..e574c7b942643 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "use strict"; @@ -1495,24 +1495,20 @@ __DEV__ && } } function setIsStrictModeForDevtools(newIsStrictMode) { - if (consoleManagedByDevToolsDuringStrictMode) { - if ( - ("function" === typeof log$1 && - (unstable_setDisableYieldValue(newIsStrictMode), - (suppressWarning = newIsStrictMode)), - injectedHook && "function" === typeof injectedHook.setStrictMode) - ) - try { - injectedHook.setStrictMode(rendererID, newIsStrictMode); - } catch (err) { - hasLoggedError || - ((hasLoggedError = !0), - error$jscomp$0( - "React instrumentation encountered an error: %s", - err - )); - } - } else newIsStrictMode ? disableLogs() : reenableLogs(); + "function" === typeof log$1 && + (unstable_setDisableYieldValue(newIsStrictMode), + (suppressWarning = newIsStrictMode)); + if (injectedHook && "function" === typeof injectedHook.setStrictMode) + try { + injectedHook.setStrictMode(rendererID, newIsStrictMode); + } catch (err) { + hasLoggedError || + ((hasLoggedError = !0), + error$jscomp$0( + "React instrumentation encountered an error: %s", + err + )); + } } function injectProfilingHooks(profilingHooks) { injectedProfilingHooks = profilingHooks; @@ -14251,8 +14247,6 @@ __DEV__ && suppressWarning = !1, isArrayImpl = Array.isArray, alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries, - consoleManagedByDevToolsDuringStrictMode = - dynamicFlagsUntyped.consoleManagedByDevToolsDuringStrictMode, disableDefaultPropsExceptForClasses = dynamicFlagsUntyped.disableDefaultPropsExceptForClasses, enableAddPropertiesFastPath = @@ -16817,12 +16811,12 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-native-fb-ff89ba73-20240712" + reconcilerVersion: "19.0.0-native-fb-fc1371f6-20240715" }); })({ findFiberByHostInstance: getInstanceFromNode, bundleType: 1, - version: "19.0.0-native-fb-ff89ba73-20240712", + version: "19.0.0-native-fb-fc1371f6-20240715", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForInstance: getInspectorDataForInstance, diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js index ba526507f7028..2a7a45a73c80e 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<019180a5199710c4c1aa6124653222df>> + * @generated SignedSource<> */ "use strict"; @@ -18,8 +18,6 @@ var ReactNativePrivateInterface = require("react-native/Libraries/ReactPrivate/R Scheduler = require("scheduler"), isArrayImpl = Array.isArray, alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries, - consoleManagedByDevToolsDuringStrictMode = - dynamicFlagsUntyped.consoleManagedByDevToolsDuringStrictMode, disableDefaultPropsExceptForClasses = dynamicFlagsUntyped.disableDefaultPropsExceptForClasses, enableAddPropertiesFastPath = dynamicFlagsUntyped.enableAddPropertiesFastPath, @@ -1657,12 +1655,8 @@ function onCommitRoot(root) { } catch (err) {} } function setIsStrictModeForDevtools(newIsStrictMode) { - if ( - consoleManagedByDevToolsDuringStrictMode && - ("function" === typeof log$1 && - unstable_setDisableYieldValue(newIsStrictMode), - injectedHook && "function" === typeof injectedHook.setStrictMode) - ) + "function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode); + if (injectedHook && "function" === typeof injectedHook.setStrictMode) try { injectedHook.setStrictMode(rendererID, newIsStrictMode); } catch (err) {} @@ -10632,7 +10626,7 @@ var roots = new Map(), devToolsConfig$jscomp$inline_1136 = { findFiberByHostInstance: getInstanceFromNode, bundleType: 0, - version: "19.0.0-native-fb-ff89ba73-20240712", + version: "19.0.0-native-fb-fc1371f6-20240715", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForInstance: getInspectorDataForInstance, @@ -10675,7 +10669,7 @@ var internals$jscomp$inline_1362 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-native-fb-ff89ba73-20240712" + reconcilerVersion: "19.0.0-native-fb-fc1371f6-20240715" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1363 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js index 2aaa7717083e9..6cb4cededb57b 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<30378a5bc02b2b4f128d1c2c9b10ecd1>> + * @generated SignedSource<> */ "use strict"; @@ -22,8 +22,6 @@ var ReactNativePrivateInterface = require("react-native/Libraries/ReactPrivate/R React = require("react"), isArrayImpl = Array.isArray, alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries, - consoleManagedByDevToolsDuringStrictMode = - dynamicFlagsUntyped.consoleManagedByDevToolsDuringStrictMode, disableDefaultPropsExceptForClasses = dynamicFlagsUntyped.disableDefaultPropsExceptForClasses, enableAddPropertiesFastPath = dynamicFlagsUntyped.enableAddPropertiesFastPath, @@ -1680,12 +1678,8 @@ function onCommitRoot(root, eventPriority) { } catch (err) {} } function setIsStrictModeForDevtools(newIsStrictMode) { - if ( - consoleManagedByDevToolsDuringStrictMode && - ("function" === typeof log$1 && - unstable_setDisableYieldValue(newIsStrictMode), - injectedHook && "function" === typeof injectedHook.setStrictMode) - ) + "function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode); + if (injectedHook && "function" === typeof injectedHook.setStrictMode) try { injectedHook.setStrictMode(rendererID, newIsStrictMode); } catch (err) {} @@ -11342,7 +11336,7 @@ var roots = new Map(), devToolsConfig$jscomp$inline_1217 = { findFiberByHostInstance: getInstanceFromNode, bundleType: 0, - version: "19.0.0-native-fb-ff89ba73-20240712", + version: "19.0.0-native-fb-fc1371f6-20240715", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForInstance: getInspectorDataForInstance, @@ -11398,7 +11392,7 @@ var roots = new Map(), scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-native-fb-ff89ba73-20240712" + reconcilerVersion: "19.0.0-native-fb-fc1371f6-20240715" }); exports.createPortal = function (children, containerTag) { return createPortal$1( diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js index f02f3ce835ea9..fd7eb62c91832 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "use strict"; @@ -1594,24 +1594,20 @@ __DEV__ && } } function setIsStrictModeForDevtools(newIsStrictMode) { - if (consoleManagedByDevToolsDuringStrictMode) { - if ( - ("function" === typeof log$1 && - (unstable_setDisableYieldValue(newIsStrictMode), - (suppressWarning = newIsStrictMode)), - injectedHook && "function" === typeof injectedHook.setStrictMode) - ) - try { - injectedHook.setStrictMode(rendererID, newIsStrictMode); - } catch (err) { - hasLoggedError || - ((hasLoggedError = !0), - error$jscomp$0( - "React instrumentation encountered an error: %s", - err - )); - } - } else newIsStrictMode ? disableLogs() : reenableLogs(); + "function" === typeof log$1 && + (unstable_setDisableYieldValue(newIsStrictMode), + (suppressWarning = newIsStrictMode)); + if (injectedHook && "function" === typeof injectedHook.setStrictMode) + try { + injectedHook.setStrictMode(rendererID, newIsStrictMode); + } catch (err) { + hasLoggedError || + ((hasLoggedError = !0), + error$jscomp$0( + "React instrumentation encountered an error: %s", + err + )); + } } function injectProfilingHooks(profilingHooks) { injectedProfilingHooks = profilingHooks; @@ -14387,8 +14383,6 @@ __DEV__ && suppressWarning = !1, isArrayImpl = Array.isArray, alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries, - consoleManagedByDevToolsDuringStrictMode = - dynamicFlagsUntyped.consoleManagedByDevToolsDuringStrictMode, disableDefaultPropsExceptForClasses = dynamicFlagsUntyped.disableDefaultPropsExceptForClasses, enableObjectFiber = dynamicFlagsUntyped.enableObjectFiber, @@ -17005,11 +16999,11 @@ __DEV__ && var emptyObject = {}; Object.freeze(emptyObject); var isomorphicReactPackageVersion = React.version; - if ("19.0.0-native-fb-ff89ba73-20240712" !== isomorphicReactPackageVersion) + if ("19.0.0-native-fb-fc1371f6-20240715" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.0.0-native-fb-ff89ba73-20240712\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.0.0-native-fb-fc1371f6-20240715\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -17057,12 +17051,12 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-native-fb-ff89ba73-20240712" + reconcilerVersion: "19.0.0-native-fb-fc1371f6-20240715" }); })({ findFiberByHostInstance: getInstanceFromTag, bundleType: 1, - version: "19.0.0-native-fb-ff89ba73-20240712", + version: "19.0.0-native-fb-fc1371f6-20240715", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForInstance: getInspectorDataForInstance, diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js index cdfb3ada1aedf..7df3e97876c32 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<4b2464da555845662b7117ab2c659d6f>> */ "use strict"; @@ -18,8 +18,6 @@ var ReactNativePrivateInterface = require("react-native/Libraries/ReactPrivate/R Scheduler = require("scheduler"), isArrayImpl = Array.isArray, alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries, - consoleManagedByDevToolsDuringStrictMode = - dynamicFlagsUntyped.consoleManagedByDevToolsDuringStrictMode, disableDefaultPropsExceptForClasses = dynamicFlagsUntyped.disableDefaultPropsExceptForClasses, enableObjectFiber = dynamicFlagsUntyped.enableObjectFiber, @@ -1862,12 +1860,8 @@ function onCommitRoot(root) { } catch (err) {} } function setIsStrictModeForDevtools(newIsStrictMode) { - if ( - consoleManagedByDevToolsDuringStrictMode && - ("function" === typeof log$1 && - unstable_setDisableYieldValue(newIsStrictMode), - injectedHook && "function" === typeof injectedHook.setStrictMode) - ) + "function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode); + if (injectedHook && "function" === typeof injectedHook.setStrictMode) try { injectedHook.setStrictMode(rendererID, newIsStrictMode); } catch (err) {} @@ -10786,11 +10780,11 @@ function traverseOwnerTreeUp(hierarchy, instance) { traverseOwnerTreeUp(hierarchy, instance); } var isomorphicReactPackageVersion = React.version; -if ("19.0.0-native-fb-ff89ba73-20240712" !== isomorphicReactPackageVersion) +if ("19.0.0-native-fb-fc1371f6-20240715" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.0.0-native-fb-ff89ba73-20240712\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.0.0-native-fb-fc1371f6-20240715\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -10840,7 +10834,7 @@ var roots = new Map(), devToolsConfig$jscomp$inline_1210 = { findFiberByHostInstance: getInstanceFromTag, bundleType: 0, - version: "19.0.0-native-fb-ff89ba73-20240712", + version: "19.0.0-native-fb-fc1371f6-20240715", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForInstance: getInspectorDataForInstance, @@ -10883,7 +10877,7 @@ var internals$jscomp$inline_1457 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-native-fb-ff89ba73-20240712" + reconcilerVersion: "19.0.0-native-fb-fc1371f6-20240715" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1458 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js index a81e60860a614..d912056781d2b 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "use strict"; @@ -22,8 +22,6 @@ var ReactNativePrivateInterface = require("react-native/Libraries/ReactPrivate/R Scheduler = require("scheduler"), isArrayImpl = Array.isArray, alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries, - consoleManagedByDevToolsDuringStrictMode = - dynamicFlagsUntyped.consoleManagedByDevToolsDuringStrictMode, disableDefaultPropsExceptForClasses = dynamicFlagsUntyped.disableDefaultPropsExceptForClasses, enableObjectFiber = dynamicFlagsUntyped.enableObjectFiber, @@ -1885,12 +1883,8 @@ function onCommitRoot(root, eventPriority) { } catch (err) {} } function setIsStrictModeForDevtools(newIsStrictMode) { - if ( - consoleManagedByDevToolsDuringStrictMode && - ("function" === typeof log$1 && - unstable_setDisableYieldValue(newIsStrictMode), - injectedHook && "function" === typeof injectedHook.setStrictMode) - ) + "function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode); + if (injectedHook && "function" === typeof injectedHook.setStrictMode) try { injectedHook.setStrictMode(rendererID, newIsStrictMode); } catch (err) {} @@ -11497,11 +11491,11 @@ function traverseOwnerTreeUp(hierarchy, instance) { traverseOwnerTreeUp(hierarchy, instance); } var isomorphicReactPackageVersion = React.version; -if ("19.0.0-native-fb-ff89ba73-20240712" !== isomorphicReactPackageVersion) +if ("19.0.0-native-fb-fc1371f6-20240715" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.0.0-native-fb-ff89ba73-20240712\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.0.0-native-fb-fc1371f6-20240715\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11551,7 +11545,7 @@ var roots = new Map(), devToolsConfig$jscomp$inline_1291 = { findFiberByHostInstance: getInstanceFromTag, bundleType: 0, - version: "19.0.0-native-fb-ff89ba73-20240712", + version: "19.0.0-native-fb-fc1371f6-20240715", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForInstance: getInspectorDataForInstance, @@ -11607,7 +11601,7 @@ var roots = new Map(), scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-native-fb-ff89ba73-20240712" + reconcilerVersion: "19.0.0-native-fb-fc1371f6-20240715" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = { computeComponentStackForErrorReporting: function (reactTag) {