Skip to content
Open
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
6 changes: 5 additions & 1 deletion packages/scheduler/src/forks/Scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ var taskIdCounter = 1;

var currentTask = null;
var currentPriorityLevel: PriorityLevel = NormalPriority;

// NOTE: In Firefox, JavaScript execution can pause due to debugger breakpoints
// or alert() calls while scheduler work is in progress.
// When execution resumes, this flag may remain set if cleanup logic
// does not run as expected, causing the scheduler to believe work
// is already in progress. See issue #17355 for context.
// This is set while performing work, to prevent re-entrance.
var isPerformingWork = false;

Expand Down