Skip to content

Commit 61de5a9

Browse files
committed
[Reconciler] Set ProfileMode for Host Root Fiber by default in dev (#34432)
Requiring DevTools to be present for dev builds seems like an overkill, let's enable the instrumentation by default. Nothing changes for profiling or production artifacts. DiffTrain build for [0e10ee9](0e10ee9)
1 parent f6a59c9 commit 61de5a9

34 files changed

Lines changed: 96 additions & 106 deletions

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0c813c528d78a7b1c831f758353416709630a104
1+
0e10ee906e3ea55e4d717d4db498e1159235b06b
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0c813c528d78a7b1c831f758353416709630a104
1+
0e10ee906e3ea55e4d717d4db498e1159235b06b

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ __DEV__ &&
14181418
exports.useTransition = function () {
14191419
return resolveDispatcher().useTransition();
14201420
};
1421-
exports.version = "19.2.0-www-classic-0c813c52-20250912";
1421+
exports.version = "19.2.0-www-classic-0e10ee90-20250912";
14221422
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14231423
"function" ===
14241424
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ __DEV__ &&
14181418
exports.useTransition = function () {
14191419
return resolveDispatcher().useTransition();
14201420
};
1421-
exports.version = "19.2.0-www-modern-0c813c52-20250912";
1421+
exports.version = "19.2.0-www-modern-0e10ee90-20250912";
14221422
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14231423
"function" ===
14241424
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,4 +600,4 @@ exports.useSyncExternalStore = function (
600600
exports.useTransition = function () {
601601
return ReactSharedInternals.H.useTransition();
602602
};
603-
exports.version = "19.2.0-www-classic-0c813c52-20250912";
603+
exports.version = "19.2.0-www-classic-0e10ee90-20250912";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,4 +600,4 @@ exports.useSyncExternalStore = function (
600600
exports.useTransition = function () {
601601
return ReactSharedInternals.H.useTransition();
602602
};
603-
exports.version = "19.2.0-www-modern-0c813c52-20250912";
603+
exports.version = "19.2.0-www-modern-0e10ee90-20250912";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ exports.useSyncExternalStore = function (
604604
exports.useTransition = function () {
605605
return ReactSharedInternals.H.useTransition();
606606
};
607-
exports.version = "19.2.0-www-classic-0c813c52-20250912";
607+
exports.version = "19.2.0-www-classic-0e10ee90-20250912";
608608
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
609609
"function" ===
610610
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ exports.useSyncExternalStore = function (
604604
exports.useTransition = function () {
605605
return ReactSharedInternals.H.useTransition();
606606
};
607-
exports.version = "19.2.0-www-modern-0c813c52-20250912";
607+
exports.version = "19.2.0-www-modern-0e10ee90-20250912";
608608
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
609609
"function" ===
610610
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19635,9 +19635,7 @@ __DEV__ &&
1963519635
);
1963619636
_this$props.hydrationCallbacks = null;
1963719637
enableTransitionTracing && (_this$props.transitionCallbacks = null);
19638-
var uninitializedFiber = 1;
19639-
isDevToolsPresent && (uninitializedFiber |= 2);
19640-
uninitializedFiber = createFiber(3, null, null, uninitializedFiber);
19638+
var uninitializedFiber = createFiber(3, null, null, 3);
1964119639
_this$props.current = uninitializedFiber;
1964219640
uninitializedFiber.stateNode = _this$props;
1964319641
var initialCache = createCache();
@@ -19722,10 +19720,10 @@ __DEV__ &&
1972219720
(function () {
1972319721
var internals = {
1972419722
bundleType: 1,
19725-
version: "19.2.0-www-classic-0c813c52-20250912",
19723+
version: "19.2.0-www-classic-0e10ee90-20250912",
1972619724
rendererPackageName: "react-art",
1972719725
currentDispatcherRef: ReactSharedInternals,
19728-
reconcilerVersion: "19.2.0-www-classic-0c813c52-20250912"
19726+
reconcilerVersion: "19.2.0-www-classic-0e10ee90-20250912"
1972919727
};
1973019728
internals.overrideHookState = overrideHookState;
1973119729
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -19759,7 +19757,7 @@ __DEV__ &&
1975919757
exports.Shape = Shape;
1976019758
exports.Surface = Surface;
1976119759
exports.Text = Text;
19762-
exports.version = "19.2.0-www-classic-0c813c52-20250912";
19760+
exports.version = "19.2.0-www-classic-0e10ee90-20250912";
1976319761
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1976419762
"function" ===
1976519763
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19406,9 +19406,7 @@ __DEV__ &&
1940619406
);
1940719407
_this$props.hydrationCallbacks = null;
1940819408
enableTransitionTracing && (_this$props.transitionCallbacks = null);
19409-
var uninitializedFiber = 1;
19410-
isDevToolsPresent && (uninitializedFiber |= 2);
19411-
uninitializedFiber = createFiber(3, null, null, uninitializedFiber);
19409+
var uninitializedFiber = createFiber(3, null, null, 3);
1941219410
_this$props.current = uninitializedFiber;
1941319411
uninitializedFiber.stateNode = _this$props;
1941419412
var initialCache = createCache();
@@ -19493,10 +19491,10 @@ __DEV__ &&
1949319491
(function () {
1949419492
var internals = {
1949519493
bundleType: 1,
19496-
version: "19.2.0-www-modern-0c813c52-20250912",
19494+
version: "19.2.0-www-modern-0e10ee90-20250912",
1949719495
rendererPackageName: "react-art",
1949819496
currentDispatcherRef: ReactSharedInternals,
19499-
reconcilerVersion: "19.2.0-www-modern-0c813c52-20250912"
19497+
reconcilerVersion: "19.2.0-www-modern-0e10ee90-20250912"
1950019498
};
1950119499
internals.overrideHookState = overrideHookState;
1950219500
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -19530,7 +19528,7 @@ __DEV__ &&
1953019528
exports.Shape = Shape;
1953119529
exports.Surface = Surface;
1953219530
exports.Text = Text;
19533-
exports.version = "19.2.0-www-modern-0c813c52-20250912";
19531+
exports.version = "19.2.0-www-modern-0e10ee90-20250912";
1953419532
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1953519533
"function" ===
1953619534
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)