MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / pop

Function pop

code/styling/public/app.js:12576–12599  ·  view source on GitHub ↗
(cursor, fiber)

Source from the content-addressed store, hash-verified

12574 }
12575
12576 function pop(cursor, fiber) {
12577 if (index < 0) {
12578 {
12579 warning(false, 'Unexpected pop.');
12580 }
12581 return;
12582 }
12583
12584 {
12585 if (fiber !== fiberStack[index]) {
12586 warning(false, 'Unexpected Fiber popped.');
12587 }
12588 }
12589
12590 cursor.current = valueStack[index];
12591
12592 valueStack[index] = null;
12593
12594 {
12595 fiberStack[index] = null;
12596 }
12597
12598 index--;
12599 }
12600
12601 function push(cursor, value, fiber) {
12602 index++;

Callers 6

popHostContainerFunction · 0.70
popHostContextFunction · 0.70
popContextProviderFunction · 0.70
popTopLevelContextObjectFunction · 0.70
popProviderFunction · 0.70

Calls 1

warningFunction · 0.85

Tested by

no test coverage detected