runEventsInBatch() — react Function Reference
Architecture documentation for the runEventsInBatch() function in EventBatching.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 5efffabc_c2e8_5320_9d9a_8644c6b02f1e["runEventsInBatch()"] a944c363_6a35_5391_61a7_42a0bfda6052["EventBatching.js"] 5efffabc_c2e8_5320_9d9a_8644c6b02f1e -->|defined in| a944c363_6a35_5391_61a7_42a0bfda6052 6b245763_d7d9_fec1_1fd3_092c4686c9a6["rethrowCaughtError()"] 5efffabc_c2e8_5320_9d9a_8644c6b02f1e -->|calls| 6b245763_d7d9_fec1_1fd3_092c4686c9a6 style 5efffabc_c2e8_5320_9d9a_8644c6b02f1e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-native-renderer/src/legacy-events/EventBatching.js lines 40–67
export function runEventsInBatch(
events: Array<ReactSyntheticEvent> | ReactSyntheticEvent | null,
) {
if (events !== null) {
eventQueue = accumulateInto(eventQueue, events);
}
// Set `eventQueue` to null before processing it so that we can tell if more
// events get enqueued while processing.
const processingEventQueue = eventQueue;
eventQueue = null;
if (!processingEventQueue) {
return;
}
forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
if (eventQueue) {
throw new Error(
'processEventQueue(): Additional events were enqueued while processing ' +
'an event queue. Support for this has not yet been implemented.',
);
}
// This would be a good time to rethrow if any of the event handlers threw.
rethrowCaughtError();
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does runEventsInBatch() do?
runEventsInBatch() is a function in the react codebase, defined in packages/react-native-renderer/src/legacy-events/EventBatching.js.
Where is runEventsInBatch() defined?
runEventsInBatch() is defined in packages/react-native-renderer/src/legacy-events/EventBatching.js at line 40.
What does runEventsInBatch() call?
runEventsInBatch() calls 1 function(s): rethrowCaughtError.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free