Skip to content

Commit 5cd2921

Browse files
committed
Stringify context as SomeContext instead of SomeContext.Provider (#33507)
This matches the change in React 19 to use `<SomeContext>` as the preferred way to provide a context. DiffTrain build for [b7e2de6](b7e2de6)
1 parent 54e2e34 commit 5cd2921

38 files changed

+132
-132
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ __DEV__ &&
4949
case REACT_PORTAL_TYPE:
5050
return "Portal";
5151
case REACT_CONTEXT_TYPE:
52-
return (type.displayName || "Context") + ".Provider";
52+
return type.displayName || "Context";
5353
case REACT_CONSUMER_TYPE:
5454
return (type._context.displayName || "Context") + ".Consumer";
5555
case REACT_FORWARD_REF_TYPE:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ __DEV__ &&
4949
case REACT_PORTAL_TYPE:
5050
return "Portal";
5151
case REACT_CONTEXT_TYPE:
52-
return (type.displayName || "Context") + ".Provider";
52+
return type.displayName || "Context";
5353
case REACT_CONSUMER_TYPE:
5454
return (type._context.displayName || "Context") + ".Consumer";
5555
case REACT_FORWARD_REF_TYPE:

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6c86e56a0fa3c8f253da133330cd5b7d1d20e7e5
1+
b7e2de632b2a160bc09edda1fbb9b8f85a6914e8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6c86e56a0fa3c8f253da133330cd5b7d1d20e7e5
1+
b7e2de632b2a160bc09edda1fbb9b8f85a6914e8

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ __DEV__ &&
123123
case REACT_PORTAL_TYPE:
124124
return "Portal";
125125
case REACT_CONTEXT_TYPE:
126-
return (type.displayName || "Context") + ".Provider";
126+
return type.displayName || "Context";
127127
case REACT_CONSUMER_TYPE:
128128
return (type._context.displayName || "Context") + ".Consumer";
129129
case REACT_FORWARD_REF_TYPE:
@@ -1476,7 +1476,7 @@ __DEV__ &&
14761476
exports.useTransition = function () {
14771477
return resolveDispatcher().useTransition();
14781478
};
1479-
exports.version = "19.2.0-www-classic-6c86e56a-20250611";
1479+
exports.version = "19.2.0-www-classic-b7e2de63-20250611";
14801480
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14811481
"function" ===
14821482
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ __DEV__ &&
123123
case REACT_PORTAL_TYPE:
124124
return "Portal";
125125
case REACT_CONTEXT_TYPE:
126-
return (type.displayName || "Context") + ".Provider";
126+
return type.displayName || "Context";
127127
case REACT_CONSUMER_TYPE:
128128
return (type._context.displayName || "Context") + ".Consumer";
129129
case REACT_FORWARD_REF_TYPE:
@@ -1476,7 +1476,7 @@ __DEV__ &&
14761476
exports.useTransition = function () {
14771477
return resolveDispatcher().useTransition();
14781478
};
1479-
exports.version = "19.2.0-www-modern-6c86e56a-20250611";
1479+
exports.version = "19.2.0-www-modern-b7e2de63-20250611";
14801480
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14811481
"function" ===
14821482
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
@@ -627,4 +627,4 @@ exports.useSyncExternalStore = function (
627627
exports.useTransition = function () {
628628
return ReactSharedInternals.H.useTransition();
629629
};
630-
exports.version = "19.2.0-www-classic-6c86e56a-20250611";
630+
exports.version = "19.2.0-www-classic-b7e2de63-20250611";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,4 +627,4 @@ exports.useSyncExternalStore = function (
627627
exports.useTransition = function () {
628628
return ReactSharedInternals.H.useTransition();
629629
};
630-
exports.version = "19.2.0-www-modern-6c86e56a-20250611";
630+
exports.version = "19.2.0-www-modern-b7e2de63-20250611";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ exports.useSyncExternalStore = function (
631631
exports.useTransition = function () {
632632
return ReactSharedInternals.H.useTransition();
633633
};
634-
exports.version = "19.2.0-www-classic-6c86e56a-20250611";
634+
exports.version = "19.2.0-www-classic-b7e2de63-20250611";
635635
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
636636
"function" ===
637637
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
@@ -631,7 +631,7 @@ exports.useSyncExternalStore = function (
631631
exports.useTransition = function () {
632632
return ReactSharedInternals.H.useTransition();
633633
};
634-
exports.version = "19.2.0-www-modern-6c86e56a-20250611";
634+
exports.version = "19.2.0-www-modern-b7e2de63-20250611";
635635
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
636636
"function" ===
637637
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)