Skip to content

Commit 51539f2

Browse files
unstubbablegnoff
andauthored
Backport facebook/react#35351 for 15.1.10 (#87091)
facebook/react#35351 Co-authored-by: Josh Story <[email protected]>
1 parent 1cfdb45 commit 51539f2

File tree

36 files changed

+100
-72
lines changed

36 files changed

+100
-72
lines changed

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2662,10 +2662,10 @@
26622662
return hook.checkDCE ? !0 : !1;
26632663
})({
26642664
bundleType: 1,
2665-
version: "19.0.0-experimental-9c2db31f-20251211",
2665+
version: "19.0.0-experimental-b0563d6d-20251211",
26662666
rendererPackageName: "react-server-dom-turbopack",
26672667
currentDispatcherRef: ReactSharedInternals,
2668-
reconcilerVersion: "19.0.0-experimental-9c2db31f-20251211",
2668+
reconcilerVersion: "19.0.0-experimental-b0563d6d-20251211",
26692669
getCurrentComponentInfo: function () {
26702670
return currentOwnerInDEV;
26712671
}

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.development.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4220,11 +4220,12 @@
42204220
case "fulfilled":
42214221
if ("function" === typeof resolve) {
42224222
for (
4223-
var inspectedValue = this.value;
4223+
var inspectedValue = this.value, cycleProtection = 0;
42244224
inspectedValue instanceof ReactPromise;
42254225

42264226
) {
4227-
if (inspectedValue === this) {
4227+
cycleProtection++;
4228+
if (inspectedValue === this || 1e3 < cycleProtection) {
42284229
"function" === typeof reject &&
42294230
reject(Error("Cannot have cyclic thenables."));
42304231
return;

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.production.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,11 +2195,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
21952195
case "fulfilled":
21962196
if ("function" === typeof resolve) {
21972197
for (
2198-
var inspectedValue = this.value;
2198+
var inspectedValue = this.value, cycleProtection = 0;
21992199
inspectedValue instanceof ReactPromise;
22002200

22012201
) {
2202-
if (inspectedValue === this) {
2202+
cycleProtection++;
2203+
if (inspectedValue === this || 1e3 < cycleProtection) {
22032204
"function" === typeof reject &&
22042205
reject(Error("Cannot have cyclic thenables."));
22052206
return;

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.development.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4324,11 +4324,12 @@
43244324
case "fulfilled":
43254325
if ("function" === typeof resolve) {
43264326
for (
4327-
var inspectedValue = this.value;
4327+
var inspectedValue = this.value, cycleProtection = 0;
43284328
inspectedValue instanceof ReactPromise;
43294329

43304330
) {
4331-
if (inspectedValue === this) {
4331+
cycleProtection++;
4332+
if (inspectedValue === this || 1e3 < cycleProtection) {
43324333
"function" === typeof reject &&
43334334
reject(Error("Cannot have cyclic thenables."));
43344335
return;

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2208,11 +2208,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
22082208
case "fulfilled":
22092209
if ("function" === typeof resolve) {
22102210
for (
2211-
var inspectedValue = this.value;
2211+
var inspectedValue = this.value, cycleProtection = 0;
22122212
inspectedValue instanceof ReactPromise;
22132213

22142214
) {
2215-
if (inspectedValue === this) {
2215+
cycleProtection++;
2216+
if (inspectedValue === this || 1e3 < cycleProtection) {
22162217
"function" === typeof reject &&
22172218
reject(Error("Cannot have cyclic thenables."));
22182219
return;

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.development.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4318,11 +4318,12 @@
43184318
case "fulfilled":
43194319
if ("function" === typeof resolve) {
43204320
for (
4321-
var inspectedValue = this.value;
4321+
var inspectedValue = this.value, cycleProtection = 0;
43224322
inspectedValue instanceof ReactPromise;
43234323

43244324
) {
4325-
if (inspectedValue === this) {
4325+
cycleProtection++;
4326+
if (inspectedValue === this || 1e3 < cycleProtection) {
43264327
"function" === typeof reject &&
43274328
reject(Error("Cannot have cyclic thenables."));
43284329
return;

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,11 +2229,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
22292229
case "fulfilled":
22302230
if ("function" === typeof resolve) {
22312231
for (
2232-
var inspectedValue = this.value;
2232+
var inspectedValue = this.value, cycleProtection = 0;
22332233
inspectedValue instanceof ReactPromise;
22342234

22352235
) {
2236-
if (inspectedValue === this) {
2236+
cycleProtection++;
2237+
if (inspectedValue === this || 1e3 < cycleProtection) {
22372238
"function" === typeof reject &&
22382239
reject(Error("Cannot have cyclic thenables."));
22392240
return;

packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"neo-async": "^2.6.1"
4949
},
5050
"peerDependencies": {
51-
"react": "0.0.0-experimental-9c2db31f-20251211",
52-
"react-dom": "0.0.0-experimental-9c2db31f-20251211"
51+
"react": "0.0.0-experimental-b0563d6d-20251211",
52+
"react-dom": "0.0.0-experimental-b0563d6d-20251211"
5353
}
5454
}

packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,10 +2458,10 @@
24582458
return hook.checkDCE ? !0 : !1;
24592459
})({
24602460
bundleType: 1,
2461-
version: "19.0.0-rc-9c2db31f-20251211",
2461+
version: "19.0.0-rc-b0563d6d-20251211",
24622462
rendererPackageName: "react-server-dom-turbopack",
24632463
currentDispatcherRef: ReactSharedInternals,
2464-
reconcilerVersion: "19.0.0-rc-9c2db31f-20251211",
2464+
reconcilerVersion: "19.0.0-rc-b0563d6d-20251211",
24652465
getCurrentComponentInfo: function () {
24662466
return currentOwnerInDEV;
24672467
}

packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3805,11 +3805,12 @@
38053805
case "fulfilled":
38063806
if ("function" === typeof resolve) {
38073807
for (
3808-
var inspectedValue = this.value;
3808+
var inspectedValue = this.value, cycleProtection = 0;
38093809
inspectedValue instanceof ReactPromise;
38103810

38113811
) {
3812-
if (inspectedValue === this) {
3812+
cycleProtection++;
3813+
if (inspectedValue === this || 1e3 < cycleProtection) {
38133814
"function" === typeof reject &&
38143815
reject(Error("Cannot have cyclic thenables."));
38153816
return;

0 commit comments

Comments
 (0)