Skip to content

Commit 2d7ec41

Browse files
unstubbablegnoff
andauthored
Backport facebook/react#35351 for 15.6.0-canary.59 (#87094)
facebook/react#35351 Co-authored-by: Josh Story <[email protected]>
1 parent 32199ea commit 2d7ec41

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
@@ -4919,10 +4919,10 @@
49194919
return hook.checkDCE ? !0 : !1;
49204920
})({
49214921
bundleType: 1,
4922-
version: "19.3.0-experimental-370876a1-20251211",
4922+
version: "19.3.0-experimental-a25458de-20251211",
49234923
rendererPackageName: "react-server-dom-turbopack",
49244924
currentDispatcherRef: ReactSharedInternals,
4925-
reconcilerVersion: "19.3.0-experimental-370876a1-20251211",
4925+
reconcilerVersion: "19.3.0-experimental-a25458de-20251211",
49264926
getCurrentComponentInfo: function () {
49274927
return currentOwnerInDEV;
49284928
}

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
@@ -5386,11 +5386,12 @@
53865386
case "fulfilled":
53875387
if ("function" === typeof resolve) {
53885388
for (
5389-
var inspectedValue = this.value;
5389+
var inspectedValue = this.value, cycleProtection = 0;
53905390
inspectedValue instanceof ReactPromise;
53915391

53925392
) {
5393-
if (inspectedValue === this) {
5393+
cycleProtection++;
5394+
if (inspectedValue === this || 1e3 < cycleProtection) {
53945395
"function" === typeof reject &&
53955396
reject(Error("Cannot have cyclic thenables."));
53965397
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
@@ -2353,11 +2353,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
23532353
case "fulfilled":
23542354
if ("function" === typeof resolve) {
23552355
for (
2356-
var inspectedValue = this.value;
2356+
var inspectedValue = this.value, cycleProtection = 0;
23572357
inspectedValue instanceof ReactPromise;
23582358

23592359
) {
2360-
if (inspectedValue === this) {
2360+
cycleProtection++;
2361+
if (inspectedValue === this || 1e3 < cycleProtection) {
23612362
"function" === typeof reject &&
23622363
reject(Error("Cannot have cyclic thenables."));
23632364
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
@@ -5472,11 +5472,12 @@
54725472
case "fulfilled":
54735473
if ("function" === typeof resolve) {
54745474
for (
5475-
var inspectedValue = this.value;
5475+
var inspectedValue = this.value, cycleProtection = 0;
54765476
inspectedValue instanceof ReactPromise;
54775477

54785478
) {
5479-
if (inspectedValue === this) {
5479+
cycleProtection++;
5480+
if (inspectedValue === this || 1e3 < cycleProtection) {
54805481
"function" === typeof reject &&
54815482
reject(Error("Cannot have cyclic thenables."));
54825483
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
@@ -2360,11 +2360,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
23602360
case "fulfilled":
23612361
if ("function" === typeof resolve) {
23622362
for (
2363-
var inspectedValue = this.value;
2363+
var inspectedValue = this.value, cycleProtection = 0;
23642364
inspectedValue instanceof ReactPromise;
23652365

23662366
) {
2367-
if (inspectedValue === this) {
2367+
cycleProtection++;
2368+
if (inspectedValue === this || 1e3 < cycleProtection) {
23682369
"function" === typeof reject &&
23692370
reject(Error("Cannot have cyclic thenables."));
23702371
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
@@ -6093,11 +6093,12 @@
60936093
case "fulfilled":
60946094
if ("function" === typeof resolve) {
60956095
for (
6096-
var inspectedValue = this.value;
6096+
var inspectedValue = this.value, cycleProtection = 0;
60976097
inspectedValue instanceof ReactPromise;
60986098

60996099
) {
6100-
if (inspectedValue === this) {
6100+
cycleProtection++;
6101+
if (inspectedValue === this || 1e3 < cycleProtection) {
61016102
"function" === typeof reject &&
61026103
reject(Error("Cannot have cyclic thenables."));
61036104
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
@@ -2385,11 +2385,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
23852385
case "fulfilled":
23862386
if ("function" === typeof resolve) {
23872387
for (
2388-
var inspectedValue = this.value;
2388+
var inspectedValue = this.value, cycleProtection = 0;
23892389
inspectedValue instanceof ReactPromise;
23902390

23912391
) {
2392-
if (inspectedValue === this) {
2392+
cycleProtection++;
2393+
if (inspectedValue === this || 1e3 < cycleProtection) {
23932394
"function" === typeof reject &&
23942395
reject(Error("Cannot have cyclic thenables."));
23952396
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-370876a1-20251211",
52-
"react-dom": "0.0.0-experimental-370876a1-20251211"
51+
"react": "0.0.0-experimental-a25458de-20251211",
52+
"react-dom": "0.0.0-experimental-a25458de-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
@@ -4895,10 +4895,10 @@
48954895
return hook.checkDCE ? !0 : !1;
48964896
})({
48974897
bundleType: 1,
4898-
version: "19.3.0-canary-370876a1-20251211",
4898+
version: "19.3.0-canary-a25458de-20251211",
48994899
rendererPackageName: "react-server-dom-turbopack",
49004900
currentDispatcherRef: ReactSharedInternals,
4901-
reconcilerVersion: "19.3.0-canary-370876a1-20251211",
4901+
reconcilerVersion: "19.3.0-canary-a25458de-20251211",
49024902
getCurrentComponentInfo: function () {
49034903
return currentOwnerInDEV;
49044904
}

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
@@ -5272,11 +5272,12 @@
52725272
case "fulfilled":
52735273
if ("function" === typeof resolve) {
52745274
for (
5275-
var inspectedValue = this.value;
5275+
var inspectedValue = this.value, cycleProtection = 0;
52765276
inspectedValue instanceof ReactPromise;
52775277

52785278
) {
5279-
if (inspectedValue === this) {
5279+
cycleProtection++;
5280+
if (inspectedValue === this || 1e3 < cycleProtection) {
52805281
"function" === typeof reject &&
52815282
reject(Error("Cannot have cyclic thenables."));
52825283
return;

0 commit comments

Comments
 (0)