Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update React Version
  • Loading branch information
gnoff committed Dec 11, 2025
commit ae8eb15ac88f32fa3569547090b6ba0dece46cdc
Original file line number Diff line number Diff line change
Expand Up @@ -3637,8 +3637,12 @@ Chunk.prototype.then = function (resolve, reject) {
var inspectedValue = chunk.value; // Recursively check if the value is itself a ReactPromise and if so if it points
// back to itself. This helps catch recursive thenables early error.

var cycleProtection = 0;

while (inspectedValue instanceof Chunk) {
if (inspectedValue === chunk) {
cycleProtection++;

if (inspectedValue === chunk || cycleProtection > 1000) {
if (typeof reject === 'function') {
reject(new Error('Cannot have cyclic thenables.'));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2877,8 +2877,12 @@ Chunk.prototype.then = function (resolve, reject) {
let inspectedValue = chunk.value; // Recursively check if the value is itself a ReactPromise and if so if it points
// back to itself. This helps catch recursive thenables early error.

let cycleProtection = 0;

while (inspectedValue instanceof Chunk) {
if (inspectedValue === chunk) {
cycleProtection++;

if (inspectedValue === chunk || cycleProtection > 1000) {
if (typeof reject === 'function') {
reject(new Error('Cannot have cyclic thenables.'));
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3682,8 +3682,12 @@ Chunk.prototype.then = function (resolve, reject) {
var inspectedValue = chunk.value; // Recursively check if the value is itself a ReactPromise and if so if it points
// back to itself. This helps catch recursive thenables early error.

var cycleProtection = 0;

while (inspectedValue instanceof Chunk) {
if (inspectedValue === chunk) {
cycleProtection++;

if (inspectedValue === chunk || cycleProtection > 1000) {
if (typeof reject === 'function') {
reject(new Error('Cannot have cyclic thenables.'));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2900,8 +2900,12 @@ Chunk.prototype.then = function (resolve, reject) {
let inspectedValue = chunk.value; // Recursively check if the value is itself a ReactPromise and if so if it points
// back to itself. This helps catch recursive thenables early error.

let cycleProtection = 0;

while (inspectedValue instanceof Chunk) {
if (inspectedValue === chunk) {
cycleProtection++;

if (inspectedValue === chunk || cycleProtection > 1000) {
if (typeof reject === 'function') {
reject(new Error('Cannot have cyclic thenables.'));
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3729,8 +3729,12 @@ Chunk.prototype.then = function (resolve, reject) {
var inspectedValue = chunk.value; // Recursively check if the value is itself a ReactPromise and if so if it points
// back to itself. This helps catch recursive thenables early error.

var cycleProtection = 0;

while (inspectedValue instanceof Chunk) {
if (inspectedValue === chunk) {
cycleProtection++;

if (inspectedValue === chunk || cycleProtection > 1000) {
if (typeof reject === 'function') {
reject(new Error('Cannot have cyclic thenables.'));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2963,8 +2963,12 @@ Chunk.prototype.then = function (resolve, reject) {
let inspectedValue = chunk.value; // Recursively check if the value is itself a ReactPromise and if so if it points
// back to itself. This helps catch recursive thenables early error.

let cycleProtection = 0;

while (inspectedValue instanceof Chunk) {
if (inspectedValue === chunk) {
cycleProtection++;

if (inspectedValue === chunk || cycleProtection > 1000) {
if (typeof reject === 'function') {
reject(new Error('Cannot have cyclic thenables.'));
}
Expand Down
Loading
Loading