MCPcopy Create free account
hub / github.com/caseywebdev/react-list / dispatchReducerAction

Function dispatchReducerAction

docs/index.js:8136–8152  ·  view source on GitHub ↗
(fiber, queue, action)

Source from the content-addressed store, hash-verified

8134 }
8135}
8136function dispatchReducerAction(fiber, queue, action) {
8137 var lane = requestUpdateLane();
8138 action = {
8139 lane: lane,
8140 revertLane: 0,
8141 action: action,
8142 hasEagerState: !1,
8143 eagerState: null,
8144 next: null
8145 };
8146 isRenderPhaseUpdate(fiber)
8147 ? enqueueRenderPhaseUpdate(queue, action)
8148 : ((action = enqueueConcurrentHookUpdate(fiber, queue, action, lane)),
8149 null !== action &&
8150 (scheduleUpdateOnFiber(action, fiber, lane),
8151 entangleTransitionUpdate(action, queue, lane)));
8152}
8153function dispatchSetState(fiber, queue, action) {
8154 var lane = requestUpdateLane();
8155 dispatchSetStateInternal(fiber, queue, action, lane);

Callers

nothing calls this directly

Calls 7

requestUpdateLaneFunction · 0.85
isRenderPhaseUpdateFunction · 0.85
enqueueRenderPhaseUpdateFunction · 0.85
scheduleUpdateOnFiberFunction · 0.85
entangleTransitionUpdateFunction · 0.85
markStateUpdateScheduledFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…