Skip to content

Commit 9130065

Browse files
committed
Fix: Initialize childIndex in Task constructor (#27367)
This field was not being initialized. Although the property is part of the Flow type, the type error wasn't caught because the constructor itself is not covered by Flow, which is unfortunate. (I assume this is related to the dev-only componentStack property.) DiffTrain build for [69be472](69be472)
1 parent ed7966e commit 9130065

8 files changed

+18
-12
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d07921eeda62613bfcf52ecdb66322db26393567
1+
69be472c11231056d297a7b73dd0b121905606d3

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (__DEV__) {
1919
var React = require("react");
2020
var ReactDOM = require("react-dom");
2121

22-
var ReactVersion = "18.3.0-www-classic-b080da7c";
22+
var ReactVersion = "18.3.0-www-classic-82e3d4f9";
2323

2424
// This refers to a WWW module.
2525
var warningWWW = require("warning");
@@ -9784,7 +9784,8 @@ function createTask(
97849784
legacyContext: legacyContext,
97859785
context: context,
97869786
treeContext: treeContext,
9787-
thenableState: thenableState
9787+
thenableState: thenableState,
9788+
childIndex: -1
97889789
};
97899790

97909791
{

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (__DEV__) {
1919
var React = require("react");
2020
var ReactDOM = require("react-dom");
2121

22-
var ReactVersion = "18.3.0-www-modern-7c748307";
22+
var ReactVersion = "18.3.0-www-modern-6e4c58de";
2323

2424
// This refers to a WWW module.
2525
var warningWWW = require("warning");
@@ -9543,7 +9543,8 @@ function createTask(
95439543
legacyContext: legacyContext,
95449544
context: context,
95459545
treeContext: treeContext,
9546-
thenableState: thenableState
9546+
thenableState: thenableState,
9547+
childIndex: -1
95479548
};
95489549

95499550
{

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2961,7 +2961,8 @@ function createTask(
29612961
legacyContext: legacyContext,
29622962
context: context,
29632963
treeContext: treeContext,
2964-
thenableState: thenableState
2964+
thenableState: thenableState,
2965+
childIndex: -1
29652966
};
29662967
abortSet.add(task);
29672968
return task;
@@ -4499,4 +4500,4 @@ exports.renderToString = function (children, options) {
44994500
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
45004501
);
45014502
};
4502-
exports.version = "18.3.0-www-classic-10a5a8c2";
4503+
exports.version = "18.3.0-www-classic-249420ad";

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2953,7 +2953,8 @@ function createTask(
29532953
legacyContext: legacyContext,
29542954
context: context,
29552955
treeContext: treeContext,
2956-
thenableState: thenableState
2956+
thenableState: thenableState,
2957+
childIndex: -1
29572958
};
29582959
abortSet.add(task);
29592960
return task;
@@ -4460,4 +4461,4 @@ exports.renderToString = function (children, options) {
44604461
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
44614462
);
44624463
};
4463-
exports.version = "18.3.0-www-modern-c2a4cb0f";
4464+
exports.version = "18.3.0-www-modern-94a61ee7";

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9446,7 +9446,8 @@ function createTask(
94469446
legacyContext: legacyContext,
94479447
context: context,
94489448
treeContext: treeContext,
9449-
thenableState: thenableState
9449+
thenableState: thenableState,
9450+
childIndex: -1
94509451
};
94519452

94529453
{

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2746,7 +2746,8 @@ function createTask(
27462746
legacyContext: legacyContext,
27472747
context: context,
27482748
treeContext: treeContext,
2749-
thenableState: thenableState
2749+
thenableState: thenableState,
2750+
childIndex: -1
27502751
};
27512752
abortSet.add(task);
27522753
return task;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24356,7 +24356,7 @@ function createFiberRoot(
2435624356
return root;
2435724357
}
2435824358

24359-
var ReactVersion = "18.3.0-www-modern-d9222bbe";
24359+
var ReactVersion = "18.3.0-www-modern-c8100b99";
2436024360

2436124361
// Might add PROFILE later.
2436224362

0 commit comments

Comments
 (0)