ensureScheduleIsScheduled() — react Function Reference
Architecture documentation for the ensureScheduleIsScheduled() function in ReactFiberRootScheduler.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 95634e0b_1432_3e7f_4dd5_05b73a79c629["ensureScheduleIsScheduled()"] a22f22c8_f97a_86c8_be5a_4b91a6a21eab["ReactFiberRootScheduler.js"] 95634e0b_1432_3e7f_4dd5_05b73a79c629 -->|defined in| a22f22c8_f97a_86c8_be5a_4b91a6a21eab 3aa9c8cd_1d3e_a63b_dc04_9103ee37fc22["ensureRootIsScheduled()"] 3aa9c8cd_1d3e_a63b_dc04_9103ee37fc22 -->|calls| 95634e0b_1432_3e7f_4dd5_05b73a79c629 fb9af2be_1d94_c7da_f1b0_74ad8dd4be7e["scheduleImmediateRootScheduleTask()"] 95634e0b_1432_3e7f_4dd5_05b73a79c629 -->|calls| fb9af2be_1d94_c7da_f1b0_74ad8dd4be7e style 95634e0b_1432_3e7f_4dd5_05b73a79c629 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactFiberRootScheduler.js lines 154–169
export function ensureScheduleIsScheduled(): void {
// At the end of the current event, go through each of the roots and ensure
// there's a task scheduled for each one at the correct priority.
if (__DEV__ && ReactSharedInternals.actQueue !== null) {
// We're inside an `act` scope.
if (!didScheduleMicrotask_act) {
didScheduleMicrotask_act = true;
scheduleImmediateRootScheduleTask();
}
} else {
if (!didScheduleMicrotask) {
didScheduleMicrotask = true;
scheduleImmediateRootScheduleTask();
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does ensureScheduleIsScheduled() do?
ensureScheduleIsScheduled() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberRootScheduler.js.
Where is ensureScheduleIsScheduled() defined?
ensureScheduleIsScheduled() is defined in packages/react-reconciler/src/ReactFiberRootScheduler.js at line 154.
What does ensureScheduleIsScheduled() call?
ensureScheduleIsScheduled() calls 1 function(s): scheduleImmediateRootScheduleTask.
What calls ensureScheduleIsScheduled()?
ensureScheduleIsScheduled() is called by 1 function(s): ensureRootIsScheduled.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free