@@ -66,7 +66,7 @@ if (__DEV__) {
66
66
return self;
67
67
}
68
68
69
- var ReactVersion = "18.3.0-www-classic-361724d4 ";
69
+ var ReactVersion = "18.3.0-www-classic-10cc6982 ";
70
70
71
71
var LegacyRoot = 0;
72
72
var ConcurrentRoot = 1;
@@ -198,6 +198,7 @@ if (__DEV__) {
198
198
var enableAsyncActions = true; // Logs additional User Timing API marks for use with an experimental profiling tool.
199
199
200
200
var enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler;
201
+ var enableBigIntSupport = false; // Flow magic to verify the exports of this file match the original version.
201
202
202
203
var FunctionComponent = 0;
203
204
var ClassComponent = 1;
@@ -6865,12 +6866,14 @@ if (__DEV__) {
6865
6866
function createChild(returnFiber, newChild, lanes, debugInfo) {
6866
6867
if (
6867
6868
(typeof newChild === "string" && newChild !== "") ||
6868
- typeof newChild === "number"
6869
+ typeof newChild === "number" ||
6870
+ enableBigIntSupport
6869
6871
) {
6870
6872
// Text nodes don't have keys. If the previous node is implicitly keyed
6871
6873
// we can continue to replace it without aborting even if it is not a text
6872
6874
// node.
6873
6875
var created = createFiberFromText(
6876
+ // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint
6874
6877
"" + newChild,
6875
6878
returnFiber.mode,
6876
6879
lanes
@@ -6998,7 +7001,8 @@ if (__DEV__) {
6998
7001
6999
7002
if (
7000
7003
(typeof newChild === "string" && newChild !== "") ||
7001
- typeof newChild === "number"
7004
+ typeof newChild === "number" ||
7005
+ enableBigIntSupport
7002
7006
) {
7003
7007
// Text nodes don't have keys. If the previous node is implicitly keyed
7004
7008
// we can continue to replace it without aborting even if it is not a text
@@ -7009,7 +7013,7 @@ if (__DEV__) {
7009
7013
7010
7014
return updateTextNode(
7011
7015
returnFiber,
7012
- oldFiber,
7016
+ oldFiber, // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint
7013
7017
"" + newChild,
7014
7018
lanes,
7015
7019
debugInfo
@@ -7124,14 +7128,15 @@ if (__DEV__) {
7124
7128
) {
7125
7129
if (
7126
7130
(typeof newChild === "string" && newChild !== "") ||
7127
- typeof newChild === "number"
7131
+ typeof newChild === "number" ||
7132
+ enableBigIntSupport
7128
7133
) {
7129
7134
// Text nodes don't have keys, so we neither have to check the old nor
7130
7135
// new node for the key. If both are text nodes, they match.
7131
7136
var matchedFiber = existingChildren.get(newIdx) || null;
7132
7137
return updateTextNode(
7133
7138
returnFiber,
7134
- matchedFiber,
7139
+ matchedFiber, // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint
7135
7140
"" + newChild,
7136
7141
lanes,
7137
7142
debugInfo
@@ -7972,12 +7977,13 @@ if (__DEV__) {
7972
7977
7973
7978
if (
7974
7979
(typeof newChild === "string" && newChild !== "") ||
7975
- typeof newChild === "number"
7980
+ typeof newChild === "number" ||
7981
+ enableBigIntSupport
7976
7982
) {
7977
7983
return placeSingleChild(
7978
7984
reconcileSingleTextNode(
7979
7985
returnFiber,
7980
- currentFirstChild,
7986
+ currentFirstChild, // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint
7981
7987
"" + newChild,
7982
7988
lanes
7983
7989
)
0 commit comments