Skip to content

Commit dd23399

Browse files
unstubbablegnoff
andauthored
Backport facebook/react#35351 for 15.5.8 (#87086)
facebook/react#35351 Co-authored-by: Josh Story <[email protected]>
1 parent 7526cd6 commit dd23399

File tree

32 files changed

+88
-64
lines changed

32 files changed

+88
-64
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
@@ -4543,10 +4543,10 @@
45434543
return hook.checkDCE ? !0 : !1;
45444544
})({
45454545
bundleType: 1,
4546-
version: "19.2.0-experimental-3b8da6c4-20251211",
4546+
version: "19.2.0-experimental-7288a7d9-20251211",
45474547
rendererPackageName: "react-server-dom-turbopack",
45484548
currentDispatcherRef: ReactSharedInternals,
4549-
reconcilerVersion: "19.2.0-experimental-3b8da6c4-20251211",
4549+
reconcilerVersion: "19.2.0-experimental-7288a7d9-20251211",
45504550
getCurrentComponentInfo: function () {
45514551
return currentOwnerInDEV;
45524552
}

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
@@ -5178,11 +5178,12 @@
51785178
case "fulfilled":
51795179
if ("function" === typeof resolve) {
51805180
for (
5181-
var inspectedValue = this.value;
5181+
var inspectedValue = this.value, cycleProtection = 0;
51825182
inspectedValue instanceof ReactPromise;
51835183

51845184
) {
5185-
if (inspectedValue === this) {
5185+
cycleProtection++;
5186+
if (inspectedValue === this || 1e3 < cycleProtection) {
51865187
"function" === typeof reject &&
51875188
reject(Error("Cannot have cyclic thenables."));
51885189
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
@@ -2219,11 +2219,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
22192219
case "fulfilled":
22202220
if ("function" === typeof resolve) {
22212221
for (
2222-
var inspectedValue = this.value;
2222+
var inspectedValue = this.value, cycleProtection = 0;
22232223
inspectedValue instanceof ReactPromise;
22242224

22252225
) {
2226-
if (inspectedValue === this) {
2226+
cycleProtection++;
2227+
if (inspectedValue === this || 1e3 < cycleProtection) {
22272228
"function" === typeof reject &&
22282229
reject(Error("Cannot have cyclic thenables."));
22292230
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
@@ -5264,11 +5264,12 @@
52645264
case "fulfilled":
52655265
if ("function" === typeof resolve) {
52665266
for (
5267-
var inspectedValue = this.value;
5267+
var inspectedValue = this.value, cycleProtection = 0;
52685268
inspectedValue instanceof ReactPromise;
52695269

52705270
) {
5271-
if (inspectedValue === this) {
5271+
cycleProtection++;
5272+
if (inspectedValue === this || 1e3 < cycleProtection) {
52725273
"function" === typeof reject &&
52735274
reject(Error("Cannot have cyclic thenables."));
52745275
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
@@ -2226,11 +2226,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
22262226
case "fulfilled":
22272227
if ("function" === typeof resolve) {
22282228
for (
2229-
var inspectedValue = this.value;
2229+
var inspectedValue = this.value, cycleProtection = 0;
22302230
inspectedValue instanceof ReactPromise;
22312231

22322232
) {
2233-
if (inspectedValue === this) {
2233+
cycleProtection++;
2234+
if (inspectedValue === this || 1e3 < cycleProtection) {
22342235
"function" === typeof reject &&
22352236
reject(Error("Cannot have cyclic thenables."));
22362237
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
@@ -5883,11 +5883,12 @@
58835883
case "fulfilled":
58845884
if ("function" === typeof resolve) {
58855885
for (
5886-
var inspectedValue = this.value;
5886+
var inspectedValue = this.value, cycleProtection = 0;
58875887
inspectedValue instanceof ReactPromise;
58885888

58895889
) {
5890-
if (inspectedValue === this) {
5890+
cycleProtection++;
5891+
if (inspectedValue === this || 1e3 < cycleProtection) {
58915892
"function" === typeof reject &&
58925893
reject(Error("Cannot have cyclic thenables."));
58935894
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
@@ -2251,11 +2251,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
22512251
case "fulfilled":
22522252
if ("function" === typeof resolve) {
22532253
for (
2254-
var inspectedValue = this.value;
2254+
var inspectedValue = this.value, cycleProtection = 0;
22552255
inspectedValue instanceof ReactPromise;
22562256

22572257
) {
2258-
if (inspectedValue === this) {
2258+
cycleProtection++;
2259+
if (inspectedValue === this || 1e3 < cycleProtection) {
22592260
"function" === typeof reject &&
22602261
reject(Error("Cannot have cyclic thenables."));
22612262
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-3b8da6c4-20251211",
52-
"react-dom": "0.0.0-experimental-3b8da6c4-20251211"
51+
"react": "0.0.0-experimental-7288a7d9-20251211",
52+
"react-dom": "0.0.0-experimental-7288a7d9-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
@@ -3473,10 +3473,10 @@
34733473
return hook.checkDCE ? !0 : !1;
34743474
})({
34753475
bundleType: 1,
3476-
version: "19.2.0-canary-3b8da6c4-20251211",
3476+
version: "19.2.0-canary-7288a7d9-20251211",
34773477
rendererPackageName: "react-server-dom-turbopack",
34783478
currentDispatcherRef: ReactSharedInternals,
3479-
reconcilerVersion: "19.2.0-canary-3b8da6c4-20251211",
3479+
reconcilerVersion: "19.2.0-canary-7288a7d9-20251211",
34803480
getCurrentComponentInfo: function () {
34813481
return currentOwnerInDEV;
34823482
}

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
@@ -4986,11 +4986,12 @@
49864986
case "fulfilled":
49874987
if ("function" === typeof resolve) {
49884988
for (
4989-
var inspectedValue = this.value;
4989+
var inspectedValue = this.value, cycleProtection = 0;
49904990
inspectedValue instanceof ReactPromise;
49914991

49924992
) {
4993-
if (inspectedValue === this) {
4993+
cycleProtection++;
4994+
if (inspectedValue === this || 1e3 < cycleProtection) {
49944995
"function" === typeof reject &&
49954996
reject(Error("Cannot have cyclic thenables."));
49964997
return;

0 commit comments

Comments
 (0)