createAndAccumulateChangeEvent() — react Function Reference
Architecture documentation for the createAndAccumulateChangeEvent() function in ChangeEventPlugin.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 848ab6af_99c3_31af_4344_4101b622f6ee["createAndAccumulateChangeEvent()"] 838f5210_e318_09a9_6c5a_e40ffda716a5["ChangeEventPlugin.js"] 848ab6af_99c3_31af_4344_4101b622f6ee -->|defined in| 838f5210_e318_09a9_6c5a_e40ffda716a5 c5720b38_2c85_24f0_6df6_86e95990702c["manualDispatchChangeEvent()"] c5720b38_2c85_24f0_6df6_86e95990702c -->|calls| 848ab6af_99c3_31af_4344_4101b622f6ee cd3a281c_00e9_4422_bec0_3af1508286fe["enqueueStateRestore()"] 848ab6af_99c3_31af_4344_4101b622f6ee -->|calls| cd3a281c_00e9_4422_bec0_3af1508286fe 5f2a0b08_c5aa_8946_aba9_c76084d143a5["accumulateTwoPhaseListeners()"] 848ab6af_99c3_31af_4344_4101b622f6ee -->|calls| 5f2a0b08_c5aa_8946_aba9_c76084d143a5 style 848ab6af_99c3_31af_4344_4101b622f6ee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-dom-bindings/src/events/plugins/ChangeEventPlugin.js lines 50–69
function createAndAccumulateChangeEvent(
dispatchQueue: DispatchQueue,
inst: null | Fiber,
nativeEvent: AnyNativeEvent,
target: null | EventTarget,
) {
// Flag this event loop as needing state restore.
enqueueStateRestore(((target: any): Node));
const listeners = accumulateTwoPhaseListeners(inst, 'onChange');
if (listeners.length > 0) {
const event: ReactSyntheticEvent = new SyntheticEvent(
'onChange',
'change',
null,
nativeEvent,
target,
);
dispatchQueue.push({event, listeners});
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does createAndAccumulateChangeEvent() do?
createAndAccumulateChangeEvent() is a function in the react codebase, defined in packages/react-dom-bindings/src/events/plugins/ChangeEventPlugin.js.
Where is createAndAccumulateChangeEvent() defined?
createAndAccumulateChangeEvent() is defined in packages/react-dom-bindings/src/events/plugins/ChangeEventPlugin.js at line 50.
What does createAndAccumulateChangeEvent() call?
createAndAccumulateChangeEvent() calls 2 function(s): accumulateTwoPhaseListeners, enqueueStateRestore.
What calls createAndAccumulateChangeEvent()?
createAndAccumulateChangeEvent() is called by 1 function(s): manualDispatchChangeEvent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free