Skip to content

Commit d76cf6b

Browse files
committed
Remove string refs (behind flag) (#28322)
Depends on: - #28398 --- This removes string refs, which has been deprecated in Strict Mode for seven years. I've left them behind a flag for Meta, but in open source this fully removes the feature. DiffTrain build for [c979895](c979895)
1 parent 9509de9 commit d76cf6b

21 files changed

+60
-33
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,9 @@ if (__DEV__) {
12161216
ref = config.ref;
12171217
}
12181218

1219-
warnIfStringRefCannotBeAutoConverted(config, self);
1219+
{
1220+
warnIfStringRefCannotBeAutoConverted(config, self);
1221+
}
12201222
} // Remaining properties are added to a new props object
12211223

12221224
for (propName in config) {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,9 @@ if (__DEV__) {
12161216
ref = config.ref;
12171217
}
12181218

1219-
warnIfStringRefCannotBeAutoConverted(config, self);
1219+
{
1220+
warnIfStringRefCannotBeAutoConverted(config, self);
1221+
}
12201222
} // Remaining properties are added to a new props object
12211223

12221224
for (propName in config) {

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3bcd2de01b5716202eabe8faa338f51bdc59ce26
1+
c9798954e26a2354a951cc65607f2901a45bf035

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (__DEV__) {
2424
) {
2525
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2626
}
27-
var ReactVersion = "18.3.0-www-classic-cca960ca";
27+
var ReactVersion = "18.3.0-www-classic-e2cea41c";
2828

2929
// ATTENTION
3030
// When adding new symbols to this file,
@@ -1621,7 +1621,9 @@ if (__DEV__) {
16211621
ref = config.ref;
16221622
}
16231623

1624-
warnIfStringRefCannotBeAutoConverted(config, self);
1624+
{
1625+
warnIfStringRefCannotBeAutoConverted(config, self);
1626+
}
16251627
} // Remaining properties are added to a new props object
16261628

16271629
for (propName in config) {

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (__DEV__) {
2424
) {
2525
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2626
}
27-
var ReactVersion = "18.3.0-www-modern-f3ad7d8a";
27+
var ReactVersion = "18.3.0-www-modern-c68f569b";
2828

2929
// ATTENTION
3030
// When adding new symbols to this file,
@@ -1621,7 +1621,9 @@ if (__DEV__) {
16211621
ref = config.ref;
16221622
}
16231623

1624-
warnIfStringRefCannotBeAutoConverted(config, self);
1624+
{
1625+
warnIfStringRefCannotBeAutoConverted(config, self);
1626+
}
16251627
} // Remaining properties are added to a new props object
16261628

16271629
for (propName in config) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,4 +625,4 @@ exports.useSyncExternalStore = function (
625625
exports.useTransition = function () {
626626
return ReactCurrentDispatcher.current.useTransition();
627627
};
628-
exports.version = "18.3.0-www-classic-53c0b633";
628+
exports.version = "18.3.0-www-classic-17784f7e";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,4 +617,4 @@ exports.useSyncExternalStore = function (
617617
exports.useTransition = function () {
618618
return ReactCurrentDispatcher.current.useTransition();
619619
};
620-
exports.version = "18.3.0-www-modern-29517cf7";
620+
exports.version = "18.3.0-www-modern-7f5681e6";

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if (__DEV__) {
6666
return self;
6767
}
6868

69-
var ReactVersion = "18.3.0-www-classic-10cc6982";
69+
var ReactVersion = "18.3.0-www-classic-1b14a8b4";
7070

7171
var LegacyRoot = 0;
7272
var ConcurrentRoot = 1;
@@ -198,7 +198,7 @@ if (__DEV__) {
198198
var enableAsyncActions = true; // Logs additional User Timing API marks for use with an experimental profiling tool.
199199

200200
var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler;
201-
var enableBigIntSupport = false; // Flow magic to verify the exports of this file match the original version.
201+
var enableBigIntSupport = false; // TODO: Roll out with GK. Don't keep as dynamic flag for too long, though,
202202

203203
var FunctionComponent = 0;
204204
var ClassComponent = 1;
@@ -22173,6 +22173,8 @@ if (__DEV__) {
2217322173
}
2217422174
} else {
2217522175
{
22176+
// TODO: We should move these warnings to happen during the render
22177+
// phase (markRef).
2217622178
if (!ref.hasOwnProperty("current")) {
2217722179
error(
2217822180
"Unexpected ref object provided for %s. " +

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if (__DEV__) {
6666
return self;
6767
}
6868

69-
var ReactVersion = "18.3.0-www-modern-615fb07a";
69+
var ReactVersion = "18.3.0-www-modern-bbc162b8";
7070

7171
var LegacyRoot = 0;
7272
var ConcurrentRoot = 1;
@@ -198,7 +198,7 @@ if (__DEV__) {
198198
var enableAsyncActions = true; // Logs additional User Timing API marks for use with an experimental profiling tool.
199199

200200
var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler;
201-
var enableBigIntSupport = false; // Flow magic to verify the exports of this file match the original version.
201+
var enableBigIntSupport = false; // TODO: Roll out with GK. Don't keep as dynamic flag for too long, though,
202202

203203
var FunctionComponent = 0;
204204
var ClassComponent = 1;
@@ -21832,6 +21832,8 @@ if (__DEV__) {
2183221832
}
2183321833
} else {
2183421834
{
21835+
// TODO: We should move these warnings to happen during the render
21836+
// phase (markRef).
2183521837
if (!ref.hasOwnProperty("current")) {
2183621838
error(
2183721839
"Unexpected ref object provided for %s. " +

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ if (__DEV__) {
166166

167167
var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler;
168168
var enableSuspenseCallback = true;
169-
var enableBigIntSupport = false; // Flow magic to verify the exports of this file match the original version.
169+
var enableBigIntSupport = false; // TODO: Roll out with GK. Don't keep as dynamic flag for too long, though,
170170

171171
var FunctionComponent = 0;
172172
var ClassComponent = 1;
@@ -27703,6 +27703,8 @@ if (__DEV__) {
2770327703
}
2770427704
} else {
2770527705
{
27706+
// TODO: We should move these warnings to happen during the render
27707+
// phase (markRef).
2770627708
if (!ref.hasOwnProperty("current")) {
2770727709
error(
2770827710
"Unexpected ref object provided for %s. " +
@@ -36001,7 +36003,7 @@ if (__DEV__) {
3600136003
return root;
3600236004
}
3600336005

36004-
var ReactVersion = "18.3.0-www-classic-ca77f61d";
36006+
var ReactVersion = "18.3.0-www-classic-a1d5cd42";
3600536007

3600636008
function createPortal$1(
3600736009
children,

0 commit comments

Comments
 (0)