Skip to content

Commit 376b207

Browse files
committed
[DevTools] Name root "Transition" when focusing on Activity (facebook#35108)
DiffTrain build for [194c12d](facebook@194c12d)
1 parent 82d9dbe commit 376b207

38 files changed

+373
-550
lines changed

compiled/eslint-plugin-react-hooks/index.js

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -18963,18 +18963,9 @@ function isRefOrRefLikeMutableType(type) {
1896318963
function isSetStateType(id) {
1896418964
return id.type.kind === 'Function' && id.type.shapeId === 'BuiltInSetState';
1896518965
}
18966-
function isUseActionStateType(id) {
18967-
return (id.type.kind === 'Object' && id.type.shapeId === 'BuiltInUseActionState');
18968-
}
1896918966
function isStartTransitionType(id) {
1897018967
return (id.type.kind === 'Function' && id.type.shapeId === 'BuiltInStartTransition');
1897118968
}
18972-
function isUseOptimisticType(id) {
18973-
return (id.type.kind === 'Object' && id.type.shapeId === 'BuiltInUseOptimistic');
18974-
}
18975-
function isSetOptimisticType(id) {
18976-
return (id.type.kind === 'Function' && id.type.shapeId === 'BuiltInSetOptimistic');
18977-
}
1897818969
function isSetActionStateType(id) {
1897918970
return (id.type.kind === 'Function' && id.type.shapeId === 'BuiltInSetActionState');
1898018971
}
@@ -18996,18 +18987,16 @@ function isStableType(id) {
1899618987
isSetActionStateType(id) ||
1899718988
isDispatcherType(id) ||
1899818989
isUseRefType(id) ||
18999-
isStartTransitionType(id) ||
19000-
isSetOptimisticType(id));
18990+
isStartTransitionType(id));
1900118991
}
1900218992
function isStableTypeContainer(id) {
1900318993
const type_ = id.type;
1900418994
if (type_.kind !== 'Object') {
1900518995
return false;
1900618996
}
1900718997
return (isUseStateType(id) ||
19008-
isUseActionStateType(id) ||
18998+
type_.shapeId === 'BuiltInUseActionState' ||
1900918999
isUseReducerType(id) ||
19010-
isUseOptimisticType(id) ||
1901119000
type_.shapeId === 'BuiltInUseTransition');
1901219001
}
1901319002
function evaluatesToStableTypeOrContainer(env, { value }) {
@@ -19020,7 +19009,6 @@ function evaluatesToStableTypeOrContainer(env, { value }) {
1902019009
case 'useActionState':
1902119010
case 'useRef':
1902219011
case 'useTransition':
19023-
case 'useOptimistic':
1902419012
return true;
1902519013
}
1902619014
}
@@ -22122,8 +22110,6 @@ const BuiltInUseReducerId = 'BuiltInUseReducer';
2212222110
const BuiltInDispatchId = 'BuiltInDispatch';
2212322111
const BuiltInUseContextHookId = 'BuiltInUseContextHook';
2212422112
const BuiltInUseTransitionId = 'BuiltInUseTransition';
22125-
const BuiltInUseOptimisticId = 'BuiltInUseOptimistic';
22126-
const BuiltInSetOptimisticId = 'BuiltInSetOptimistic';
2212722113
const BuiltInStartTransitionId = 'BuiltInStartTransition';
2212822114
const BuiltInFireId = 'BuiltInFire';
2212922115
const BuiltInFireFunctionId = 'BuiltInFireFunction';
@@ -22738,19 +22724,6 @@ addObject(BUILTIN_SHAPES, BuiltInUseTransitionId, [
2273822724
}, BuiltInStartTransitionId),
2273922725
],
2274022726
]);
22741-
addObject(BUILTIN_SHAPES, BuiltInUseOptimisticId, [
22742-
['0', { kind: 'Poly' }],
22743-
[
22744-
'1',
22745-
addFunction(BUILTIN_SHAPES, [], {
22746-
positionalParams: [],
22747-
restParam: Effect.Freeze,
22748-
returnType: PRIMITIVE_TYPE,
22749-
calleeEffect: Effect.Read,
22750-
returnValueKind: ValueKind.Primitive,
22751-
}, BuiltInSetOptimisticId),
22752-
],
22753-
]);
2275422727
addObject(BUILTIN_SHAPES, BuiltInUseActionStateId, [
2275522728
['0', { kind: 'Poly' }],
2275622729
[
@@ -31194,18 +31167,6 @@ const REACT_APIS = [
3119431167
returnValueKind: ValueKind.Frozen,
3119531168
}),
3119631169
],
31197-
[
31198-
'useOptimistic',
31199-
addHook(DEFAULT_SHAPES, {
31200-
positionalParams: [],
31201-
restParam: Effect.Freeze,
31202-
returnType: { kind: 'Object', shapeId: BuiltInUseOptimisticId },
31203-
calleeEffect: Effect.Read,
31204-
hookKind: 'useOptimistic',
31205-
returnValueKind: ValueKind.Frozen,
31206-
returnValueReason: ValueReason.State,
31207-
}),
31208-
],
3120931170
[
3121031171
'use',
3121131172
addFunction(DEFAULT_SHAPES, [], {

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
eb89912ee5ace8bf8e616cca5a6aeebcd274b521
1+
194c12d949cb142d2f29637fbee2ab4cec057eef
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
eb89912ee5ace8bf8e616cca5a6aeebcd274b521
1+
194c12d949cb142d2f29637fbee2ab4cec057eef

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ __DEV__ &&
14991499
exports.useTransition = function () {
15001500
return resolveDispatcher().useTransition();
15011501
};
1502-
exports.version = "19.3.0-www-classic-eb89912e-20251118";
1502+
exports.version = "19.3.0-www-classic-194c12d9-20251118";
15031503
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15041504
"function" ===
15051505
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
@@ -1499,7 +1499,7 @@ __DEV__ &&
14991499
exports.useTransition = function () {
15001500
return resolveDispatcher().useTransition();
15011501
};
1502-
exports.version = "19.3.0-www-modern-eb89912e-20251118";
1502+
exports.version = "19.3.0-www-modern-194c12d9-20251118";
15031503
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15041504
"function" ===
15051505
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
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
606606
exports.useTransition = function () {
607607
return ReactSharedInternals.H.useTransition();
608608
};
609-
exports.version = "19.3.0-www-classic-eb89912e-20251118";
609+
exports.version = "19.3.0-www-classic-194c12d9-20251118";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
606606
exports.useTransition = function () {
607607
return ReactSharedInternals.H.useTransition();
608608
};
609-
exports.version = "19.3.0-www-modern-eb89912e-20251118";
609+
exports.version = "19.3.0-www-modern-194c12d9-20251118";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ exports.useSyncExternalStore = function (
610610
exports.useTransition = function () {
611611
return ReactSharedInternals.H.useTransition();
612612
};
613-
exports.version = "19.3.0-www-classic-eb89912e-20251118";
613+
exports.version = "19.3.0-www-classic-194c12d9-20251118";
614614
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
615615
"function" ===
616616
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
@@ -610,7 +610,7 @@ exports.useSyncExternalStore = function (
610610
exports.useTransition = function () {
611611
return ReactSharedInternals.H.useTransition();
612612
};
613-
exports.version = "19.3.0-www-modern-eb89912e-20251118";
613+
exports.version = "19.3.0-www-modern-194c12d9-20251118";
614614
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
615615
"function" ===
616616
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4065,9 +4065,9 @@ __DEV__ &&
40654065
}
40664066
function mapRemainingChildren(currentFirstChild) {
40674067
for (var existingChildren = new Map(); null !== currentFirstChild; )
4068-
null === currentFirstChild.key
4069-
? existingChildren.set(currentFirstChild.index, currentFirstChild)
4070-
: existingChildren.set(currentFirstChild.key, currentFirstChild),
4068+
null !== currentFirstChild.key
4069+
? existingChildren.set(currentFirstChild.key, currentFirstChild)
4070+
: existingChildren.set(currentFirstChild.index, currentFirstChild),
40714071
(currentFirstChild = currentFirstChild.sibling);
40724072
return existingChildren;
40734073
}
@@ -4584,11 +4584,10 @@ __DEV__ &&
45844584
knownKeys
45854585
)),
45864586
shouldTrackSideEffects &&
4587-
((newFiber = nextOldFiber.alternate),
4588-
null !== newFiber &&
4589-
oldFiber.delete(
4590-
null === newFiber.key ? newIdx : newFiber.key
4591-
)),
4587+
null !== nextOldFiber.alternate &&
4588+
oldFiber.delete(
4589+
null === nextOldFiber.key ? newIdx : nextOldFiber.key
4590+
),
45924591
(currentFirstChild = placeChild(
45934592
nextOldFiber,
45944593
currentFirstChild,
@@ -4693,9 +4692,10 @@ __DEV__ &&
46934692
knownKeys
46944693
)),
46954694
shouldTrackSideEffects &&
4696-
((step = nextOldFiber.alternate),
4697-
null !== step &&
4698-
oldFiber.delete(null === step.key ? newIdx : step.key)),
4695+
null !== nextOldFiber.alternate &&
4696+
oldFiber.delete(
4697+
null === nextOldFiber.key ? newIdx : nextOldFiber.key
4698+
),
46994699
(currentFirstChild = placeChild(
47004700
nextOldFiber,
47014701
currentFirstChild,
@@ -20466,10 +20466,10 @@ __DEV__ &&
2046620466
(function () {
2046720467
var internals = {
2046820468
bundleType: 1,
20469-
version: "19.3.0-www-classic-eb89912e-20251118",
20469+
version: "19.3.0-www-classic-194c12d9-20251118",
2047020470
rendererPackageName: "react-art",
2047120471
currentDispatcherRef: ReactSharedInternals,
20472-
reconcilerVersion: "19.3.0-www-classic-eb89912e-20251118"
20472+
reconcilerVersion: "19.3.0-www-classic-194c12d9-20251118"
2047320473
};
2047420474
internals.overrideHookState = overrideHookState;
2047520475
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20504,7 +20504,7 @@ __DEV__ &&
2050420504
exports.Shape = Shape;
2050520505
exports.Surface = Surface;
2050620506
exports.Text = Text;
20507-
exports.version = "19.3.0-www-classic-eb89912e-20251118";
20507+
exports.version = "19.3.0-www-classic-194c12d9-20251118";
2050820508
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2050920509
"function" ===
2051020510
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)