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

Function pop

code/dependency-injection/public/app.js:12669–12692  ·  view source on GitHub ↗
(cursor, fiber)

Source from the content-addressed store, hash-verified

12667 }
12668
12669 function pop(cursor, fiber) {
12670 if (index < 0) {
12671 {
12672 warning(false, 'Unexpected pop.');
12673 }
12674 return;
12675 }
12676
12677 {
12678 if (fiber !== fiberStack[index]) {
12679 warning(false, 'Unexpected Fiber popped.');
12680 }
12681 }
12682
12683 cursor.current = valueStack[index];
12684
12685 valueStack[index] = null;
12686
12687 {
12688 fiberStack[index] = null;
12689 }
12690
12691 index--;
12692 }
12693
12694 function push(cursor, value, fiber) {
12695 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