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

Function resetHooksOnUnwind

docs/index.js:7263–7281  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

7261 current.lanes &= ~lanes;
7262}
7263function resetHooksOnUnwind(workInProgress) {
7264 if (didScheduleRenderPhaseUpdate) {
7265 for (
7266 workInProgress = workInProgress.memoizedState;
7267 null !== workInProgress;
7268
7269 ) {
7270 var queue = workInProgress.queue;
7271 null !== queue && (queue.pending = null);
7272 workInProgress = workInProgress.next;
7273 }
7274 didScheduleRenderPhaseUpdate = !1;
7275 }
7276 renderLanes = 0;
7277 workInProgressHook = currentHook = currentlyRenderingFiber$1 = null;
7278 didScheduleRenderPhaseUpdateDuringThisPass = !1;
7279 thenableIndexCounter = localIdCounter = 0;
7280 thenableState = null;
7281}
7282function mountWorkInProgressHook() {
7283 var hook = {
7284 memoizedState: null,

Callers 4

resetWorkInProgressStackFunction · 0.85
throwAndUnwindWorkLoopFunction · 0.85
replayBeginWorkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…