Skip to content

Commit e3a23e7

Browse files
author
22388o
committed
Reduce risk of leaving shipped Hooks as nullable on Dispatcher (facebook#32068)
DiffTrain build for [886c5ad](facebook@886c5ad)
1 parent c474717 commit e3a23e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+14651
-14271
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ __DEV__ &&
5353
return "Suspense";
5454
case REACT_SUSPENSE_LIST_TYPE:
5555
return "SuspenseList";
56+
case REACT_VIEW_TRANSITION_TYPE:
5657
case REACT_TRACING_MARKER_TYPE:
5758
if (enableTransitionTracing) return "TracingMarker";
5859
}
@@ -724,6 +725,7 @@ __DEV__ &&
724725
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
725726
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
726727
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
728+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
727729
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
728730
warningWWW = require("warning"),
729731
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"),

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ __DEV__ &&
5353
return "Suspense";
5454
case REACT_SUSPENSE_LIST_TYPE:
5555
return "SuspenseList";
56+
case REACT_VIEW_TRANSITION_TYPE:
5657
case REACT_TRACING_MARKER_TYPE:
5758
if (enableTransitionTracing) return "TracingMarker";
5859
}
@@ -724,6 +725,7 @@ __DEV__ &&
724725
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
725726
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
726727
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
728+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
727729
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
728730
warningWWW = require("warning"),
729731
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"),

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a160102f3aedae0da2d692e7cf53b28a011b7bc9
1+
886c5ad936428f168e50e077bd37fe9472ff8d3e
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a160102f3aedae0da2d692e7cf53b28a011b7bc9
1+
886c5ad936428f168e50e077bd37fe9472ff8d3e

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ __DEV__ &&
137137
return "Suspense";
138138
case REACT_SUSPENSE_LIST_TYPE:
139139
return "SuspenseList";
140+
case REACT_VIEW_TRANSITION_TYPE:
140141
case REACT_TRACING_MARKER_TYPE:
141142
if (enableTransitionTracing) return "TracingMarker";
142143
}
@@ -1136,6 +1137,7 @@ __DEV__ &&
11361137
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
11371138
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
11381139
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
1140+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
11391141
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
11401142
warningWWW = require("warning"),
11411143
didWarnStateUpdateForUnmountedComponent = {},
@@ -1278,7 +1280,10 @@ __DEV__ &&
12781280
});
12791281
}
12801282
: enqueueTask,
1281-
ReactCompilerRuntime = { c: useMemoCache },
1283+
ReactCompilerRuntime = Object.freeze({
1284+
__proto__: null,
1285+
c: useMemoCache
1286+
}),
12821287
Children = {
12831288
map: mapChildren,
12841289
forEach: function (children, forEachFunc, forEachContext) {
@@ -1942,7 +1947,7 @@ __DEV__ &&
19421947
exports.useTransition = function () {
19431948
return resolveDispatcher().useTransition();
19441949
};
1945-
exports.version = "19.1.0-www-classic-a160102f-20250107";
1950+
exports.version = "19.1.0-www-classic-886c5ad9-20250115";
19461951
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19471952
"function" ===
19481953
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ __DEV__ &&
137137
return "Suspense";
138138
case REACT_SUSPENSE_LIST_TYPE:
139139
return "SuspenseList";
140+
case REACT_VIEW_TRANSITION_TYPE:
140141
case REACT_TRACING_MARKER_TYPE:
141142
if (enableTransitionTracing) return "TracingMarker";
142143
}
@@ -1136,6 +1137,7 @@ __DEV__ &&
11361137
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
11371138
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
11381139
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
1140+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
11391141
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
11401142
warningWWW = require("warning"),
11411143
didWarnStateUpdateForUnmountedComponent = {},
@@ -1278,7 +1280,10 @@ __DEV__ &&
12781280
});
12791281
}
12801282
: enqueueTask,
1281-
ReactCompilerRuntime = { c: useMemoCache },
1283+
ReactCompilerRuntime = Object.freeze({
1284+
__proto__: null,
1285+
c: useMemoCache
1286+
}),
12821287
Children = {
12831288
map: mapChildren,
12841289
forEach: function (children, forEachFunc, forEachContext) {
@@ -1942,7 +1947,7 @@ __DEV__ &&
19421947
exports.useTransition = function () {
19431948
return resolveDispatcher().useTransition();
19441949
};
1945-
exports.version = "19.1.0-www-modern-a160102f-20250107";
1950+
exports.version = "19.1.0-www-modern-886c5ad9-20250115";
19461951
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19471952
"function" ===
19481953
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ var reportGlobalError =
364364
console.error(error);
365365
};
366366
function noop() {}
367-
var ReactCompilerRuntime = { c: useMemoCache },
367+
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache },
368368
experimental_useResourceEffect = enableUseResourceEffectHook
369369
? useResourceEffect
370370
: void 0;
@@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
630630
exports.useTransition = function () {
631631
return ReactSharedInternals.H.useTransition();
632632
};
633-
exports.version = "19.1.0-www-classic-a160102f-20250107";
633+
exports.version = "19.1.0-www-classic-886c5ad9-20250115";

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ var reportGlobalError =
364364
console.error(error);
365365
};
366366
function noop() {}
367-
var ReactCompilerRuntime = { c: useMemoCache },
367+
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache },
368368
experimental_useResourceEffect = enableUseResourceEffectHook
369369
? useResourceEffect
370370
: void 0;
@@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
630630
exports.useTransition = function () {
631631
return ReactSharedInternals.H.useTransition();
632632
};
633-
exports.version = "19.1.0-www-modern-a160102f-20250107";
633+
exports.version = "19.1.0-www-modern-886c5ad9-20250115";

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ var reportGlobalError =
368368
console.error(error);
369369
};
370370
function noop() {}
371-
var ReactCompilerRuntime = { c: useMemoCache },
371+
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache },
372372
experimental_useResourceEffect = enableUseResourceEffectHook
373373
? useResourceEffect
374374
: void 0;
@@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
634634
exports.useTransition = function () {
635635
return ReactSharedInternals.H.useTransition();
636636
};
637-
exports.version = "19.1.0-www-classic-a160102f-20250107";
637+
exports.version = "19.1.0-www-classic-886c5ad9-20250115";
638638
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
639639
"function" ===
640640
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ var reportGlobalError =
368368
console.error(error);
369369
};
370370
function noop() {}
371-
var ReactCompilerRuntime = { c: useMemoCache },
371+
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache },
372372
experimental_useResourceEffect = enableUseResourceEffectHook
373373
? useResourceEffect
374374
: void 0;
@@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
634634
exports.useTransition = function () {
635635
return ReactSharedInternals.H.useTransition();
636636
};
637-
exports.version = "19.1.0-www-modern-a160102f-20250107";
637+
exports.version = "19.1.0-www-modern-886c5ad9-20250115";
638638
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
639639
"function" ===
640640
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)