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

Function pop

code/higher-order-components/public/app.js:12570–12593  ·  view source on GitHub ↗
(cursor, fiber)

Source from the content-addressed store, hash-verified

12568 }
12569
12570 function pop(cursor, fiber) {
12571 if (index < 0) {
12572 {
12573 warning(false, 'Unexpected pop.');
12574 }
12575 return;
12576 }
12577
12578 {
12579 if (fiber !== fiberStack[index]) {
12580 warning(false, 'Unexpected Fiber popped.');
12581 }
12582 }
12583
12584 cursor.current = valueStack[index];
12585
12586 valueStack[index] = null;
12587
12588 {
12589 fiberStack[index] = null;
12590 }
12591
12592 index--;
12593 }
12594
12595 function push(cursor, value, fiber) {
12596 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