waitForMicrotasks() — react Function Reference
Architecture documentation for the waitForMicrotasks() function in ReactInternalTestUtils.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD a171b128_18a5_9e04_9a7e_e896f8e81a4b["waitForMicrotasks()"] 29c464eb_52d1_465c_432a_544e82213726["ReactInternalTestUtils.js"] a171b128_18a5_9e04_9a7e_e896f8e81a4b -->|defined in| 29c464eb_52d1_465c_432a_544e82213726 838adf3d_d2af_c196_5f88_59481e7d1a6c["waitFor()"] 838adf3d_d2af_c196_5f88_59481e7d1a6c -->|calls| a171b128_18a5_9e04_9a7e_e896f8e81a4b b768b645_4318_ed74_0967_a42b9ae871bf["waitForAll()"] b768b645_4318_ed74_0967_a42b9ae871bf -->|calls| a171b128_18a5_9e04_9a7e_e896f8e81a4b 8080f74e_52b8_53a1_4a35_64c851ad74d4["waitForMicrotasks()"] a171b128_18a5_9e04_9a7e_e896f8e81a4b -->|calls| 8080f74e_52b8_53a1_4a35_64c851ad74d4 style a171b128_18a5_9e04_9a7e_e896f8e81a4b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/internal-test-utils/ReactInternalTestUtils.js lines 37–41
export async function waitForMicrotasks() {
return new Promise(resolve => {
enqueueTask(() => resolve());
});
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does waitForMicrotasks() do?
waitForMicrotasks() is a function in the react codebase, defined in packages/internal-test-utils/ReactInternalTestUtils.js.
Where is waitForMicrotasks() defined?
waitForMicrotasks() is defined in packages/internal-test-utils/ReactInternalTestUtils.js at line 37.
What does waitForMicrotasks() call?
waitForMicrotasks() calls 1 function(s): waitForMicrotasks.
What calls waitForMicrotasks()?
waitForMicrotasks() is called by 2 function(s): waitFor, waitForAll.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free