Skip to content

Commit e2110e1

Browse files
unstubbablegnoff
andauthored
Backport facebook/react#35351 for 15.0.6 (#87092)
facebook/react#35351 Co-authored-by: Josh Story <[email protected]>
1 parent 24793ec commit e2110e1

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-577bb279-20251211",
2665+
version: "19.0.0-experimental-345b0f99-20251211",
26662666
rendererPackageName: "react-server-dom-turbopack",
26672667
currentDispatcherRef: ReactSharedInternals,
2668-
reconcilerVersion: "19.0.0-experimental-577bb279-20251211",
2668+
reconcilerVersion: "19.0.0-experimental-345b0f99-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
@@ -4233,11 +4233,12 @@
42334233
case "fulfilled":
42344234
if ("function" === typeof resolve) {
42354235
for (
4236-
var inspectedValue = this.value;
4236+
var inspectedValue = this.value, cycleProtection = 0;
42374237
inspectedValue instanceof ReactPromise;
42384238

42394239
) {
4240-
if (inspectedValue === this) {
4240+
cycleProtection++;
4241+
if (inspectedValue === this || 1e3 < cycleProtection) {
42414242
"function" === typeof reject &&
42424243
reject(Error("Cannot have cyclic thenables."));
42434244
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
@@ -2198,11 +2198,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
21982198
case "fulfilled":
21992199
if ("function" === typeof resolve) {
22002200
for (
2201-
var inspectedValue = this.value;
2201+
var inspectedValue = this.value, cycleProtection = 0;
22022202
inspectedValue instanceof ReactPromise;
22032203

22042204
) {
2205-
if (inspectedValue === this) {
2205+
cycleProtection++;
2206+
if (inspectedValue === this || 1e3 < cycleProtection) {
22062207
"function" === typeof reject &&
22072208
reject(Error("Cannot have cyclic thenables."));
22082209
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
@@ -4337,11 +4337,12 @@
43374337
case "fulfilled":
43384338
if ("function" === typeof resolve) {
43394339
for (
4340-
var inspectedValue = this.value;
4340+
var inspectedValue = this.value, cycleProtection = 0;
43414341
inspectedValue instanceof ReactPromise;
43424342

43434343
) {
4344-
if (inspectedValue === this) {
4344+
cycleProtection++;
4345+
if (inspectedValue === this || 1e3 < cycleProtection) {
43454346
"function" === typeof reject &&
43464347
reject(Error("Cannot have cyclic thenables."));
43474348
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
@@ -2211,11 +2211,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
22112211
case "fulfilled":
22122212
if ("function" === typeof resolve) {
22132213
for (
2214-
var inspectedValue = this.value;
2214+
var inspectedValue = this.value, cycleProtection = 0;
22152215
inspectedValue instanceof ReactPromise;
22162216

22172217
) {
2218-
if (inspectedValue === this) {
2218+
cycleProtection++;
2219+
if (inspectedValue === this || 1e3 < cycleProtection) {
22192220
"function" === typeof reject &&
22202221
reject(Error("Cannot have cyclic thenables."));
22212222
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
@@ -4331,11 +4331,12 @@
43314331
case "fulfilled":
43324332
if ("function" === typeof resolve) {
43334333
for (
4334-
var inspectedValue = this.value;
4334+
var inspectedValue = this.value, cycleProtection = 0;
43354335
inspectedValue instanceof ReactPromise;
43364336

43374337
) {
4338-
if (inspectedValue === this) {
4338+
cycleProtection++;
4339+
if (inspectedValue === this || 1e3 < cycleProtection) {
43394340
"function" === typeof reject &&
43404341
reject(Error("Cannot have cyclic thenables."));
43414342
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
@@ -2232,11 +2232,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
22322232
case "fulfilled":
22332233
if ("function" === typeof resolve) {
22342234
for (
2235-
var inspectedValue = this.value;
2235+
var inspectedValue = this.value, cycleProtection = 0;
22362236
inspectedValue instanceof ReactPromise;
22372237

22382238
) {
2239-
if (inspectedValue === this) {
2239+
cycleProtection++;
2240+
if (inspectedValue === this || 1e3 < cycleProtection) {
22402241
"function" === typeof reject &&
22412242
reject(Error("Cannot have cyclic thenables."));
22422243
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-577bb279-20251211",
52-
"react-dom": "0.0.0-experimental-577bb279-20251211"
51+
"react": "0.0.0-experimental-345b0f99-20251211",
52+
"react-dom": "0.0.0-experimental-345b0f99-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-577bb279-20251211",
2461+
version: "19.0.0-rc-345b0f99-20251211",
24622462
rendererPackageName: "react-server-dom-turbopack",
24632463
currentDispatcherRef: ReactSharedInternals,
2464-
reconcilerVersion: "19.0.0-rc-577bb279-20251211",
2464+
reconcilerVersion: "19.0.0-rc-345b0f99-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
@@ -3819,11 +3819,12 @@
38193819
case "fulfilled":
38203820
if ("function" === typeof resolve) {
38213821
for (
3822-
var inspectedValue = this.value;
3822+
var inspectedValue = this.value, cycleProtection = 0;
38233823
inspectedValue instanceof ReactPromise;
38243824

38253825
) {
3826-
if (inspectedValue === this) {
3826+
cycleProtection++;
3827+
if (inspectedValue === this || 1e3 < cycleProtection) {
38273828
"function" === typeof reject &&
38283829
reject(Error("Cannot have cyclic thenables."));
38293830
return;

0 commit comments

Comments
 (0)