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

Function pop

code/redux/public/app.js:12827–12850  ·  view source on GitHub ↗
(cursor, fiber)

Source from the content-addressed store, hash-verified

12825 }
12826
12827 function pop(cursor, fiber) {
12828 if (index < 0) {
12829 {
12830 warning(false, 'Unexpected pop.');
12831 }
12832 return;
12833 }
12834
12835 {
12836 if (fiber !== fiberStack[index]) {
12837 warning(false, 'Unexpected Fiber popped.');
12838 }
12839 }
12840
12841 cursor.current = valueStack[index];
12842
12843 valueStack[index] = null;
12844
12845 {
12846 fiberStack[index] = null;
12847 }
12848
12849 index--;
12850 }
12851
12852 function push(cursor, value, fiber) {
12853 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