Skip to content

Commit faeda8b

Browse files
committed
Dim console calls on additional Effect invocations due to StrictMode (#29007)
DiffTrain build for commit 3ac551e.
1 parent 1dcb0df commit faeda8b

4 files changed

Lines changed: 16 additions & 7 deletions

File tree

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<286f871bd1498529f1c4a240e3588ad5>>
10+
* @generated SignedSource<<e572e12f289b369da00c2c334d15c54d>>
1111
*/
1212

1313
'use strict';
@@ -21988,6 +21988,7 @@ function recursivelyTraverseAndDoubleInvokeEffectsInDEV(root, parentFiber, isInS
2198821988

2198921989
function doubleInvokeEffectsOnFiber(root, fiber) {
2199021990
var shouldDoubleInvokePassiveEffects = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
21991+
setIsStrictModeForDevtools(true);
2199121992
disappearLayoutEffects(fiber);
2199221993

2199321994
if (shouldDoubleInvokePassiveEffects) {
@@ -21999,6 +22000,8 @@ function doubleInvokeEffectsOnFiber(root, fiber) {
2199922000
if (shouldDoubleInvokePassiveEffects) {
2200022001
reconnectPassiveEffects(root, fiber, NoLanes, null, false);
2200122002
}
22003+
22004+
setIsStrictModeForDevtools(false);
2200222005
}
2200322006

2200422007
function doubleInvokeEffectsInDEVIfNecessary(root, fiber, parentIsInStrictMode) {
@@ -23303,7 +23306,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
2330323306
return root;
2330423307
}
2330523308

23306-
var ReactVersion = '19.0.0-rc-d64da7b1';
23309+
var ReactVersion = '19.0.0-rc-143c3a2f';
2330723310

2330823311
/*
2330923312
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
217b2ccf160d7594a926d276a75c7312b299be4d
1+
3ac551e855f9bec3161da2fc8787958aa62113db

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<c3dfb8294efc9a95c7b084ad29cac4c4>>
10+
* @generated SignedSource<<a69173f58e67e3c442c5241c04c2e053>>
1111
*/
1212

1313
'use strict';
@@ -24710,6 +24710,7 @@ function recursivelyTraverseAndDoubleInvokeEffectsInDEV(root, parentFiber, isInS
2471024710

2471124711
function doubleInvokeEffectsOnFiber(root, fiber) {
2471224712
var shouldDoubleInvokePassiveEffects = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
24713+
setIsStrictModeForDevtools(true);
2471324714
disappearLayoutEffects(fiber);
2471424715

2471524716
if (shouldDoubleInvokePassiveEffects) {
@@ -24721,6 +24722,8 @@ function doubleInvokeEffectsOnFiber(root, fiber) {
2472124722
if (shouldDoubleInvokePassiveEffects) {
2472224723
reconnectPassiveEffects(root, fiber, NoLanes, null, false);
2472324724
}
24725+
24726+
setIsStrictModeForDevtools(false);
2472424727
}
2472524728

2472624729
function doubleInvokeEffectsInDEVIfNecessary(root, fiber, parentIsInStrictMode) {
@@ -26042,7 +26045,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
2604226045
return root;
2604326046
}
2604426047

26045-
var ReactVersion = '19.0.0-rc-a8857e8e';
26048+
var ReactVersion = '19.0.0-rc-bb385be5';
2604626049

2604726050
/*
2604826051
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<41909aca302c98b3f31b275cee319e39>>
10+
* @generated SignedSource<<55f31038f2be45dd38383c50d946e009>>
1111
*/
1212

1313
'use strict';
@@ -25060,6 +25060,7 @@ function recursivelyTraverseAndDoubleInvokeEffectsInDEV(root, parentFiber, isInS
2506025060

2506125061
function doubleInvokeEffectsOnFiber(root, fiber) {
2506225062
var shouldDoubleInvokePassiveEffects = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
25063+
setIsStrictModeForDevtools(true);
2506325064
disappearLayoutEffects(fiber);
2506425065

2506525066
if (shouldDoubleInvokePassiveEffects) {
@@ -25071,6 +25072,8 @@ function doubleInvokeEffectsOnFiber(root, fiber) {
2507125072
if (shouldDoubleInvokePassiveEffects) {
2507225073
reconnectPassiveEffects(root, fiber, NoLanes, null, false);
2507325074
}
25075+
25076+
setIsStrictModeForDevtools(false);
2507425077
}
2507525078

2507625079
function doubleInvokeEffectsInDEVIfNecessary(root, fiber, parentIsInStrictMode) {
@@ -26392,7 +26395,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
2639226395
return root;
2639326396
}
2639426397

26395-
var ReactVersion = '19.0.0-rc-a63abc4e';
26398+
var ReactVersion = '19.0.0-rc-5945dec0';
2639626399

2639726400
/*
2639826401
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol

0 commit comments

Comments
 (0)