Skip to content

Commit

Permalink
Increase nested update limit to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Pope committed Sep 25, 2024
1 parent d2e9b9b commit b8a78e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberWorkLoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ let pendingPassiveEffectsRenderEndTime: number = -0; // Profiling-only
let pendingPassiveTransitions: Array<Transition> | null = null;

// Use these to prevent an infinite loop of nested updates
const NESTED_UPDATE_LIMIT = 50;
const NESTED_UPDATE_LIMIT = 100;
let nestedUpdateCount: number = 0;
let rootWithNestedUpdates: FiberRoot | null = null;
let isFlushingPassiveEffects = false;
Expand Down

0 comments on commit b8a78e4

Please sign in to comment.