MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / pop

Function pop

code/composition/public/app.js:12714–12737  ·  view source on GitHub ↗
(cursor, fiber)

Source from the content-addressed store, hash-verified

12712 }
12713
12714 function pop(cursor, fiber) {
12715 if (index < 0) {
12716 {
12717 warning(false, 'Unexpected pop.');
12718 }
12719 return;
12720 }
12721
12722 {
12723 if (fiber !== fiberStack[index]) {
12724 warning(false, 'Unexpected Fiber popped.');
12725 }
12726 }
12727
12728 cursor.current = valueStack[index];
12729
12730 valueStack[index] = null;
12731
12732 {
12733 fiberStack[index] = null;
12734 }
12735
12736 index--;
12737 }
12738
12739 function push(cursor, value, fiber) {
12740 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