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

Function pop

code/third-party/public/app.js:11809–11832  ·  view source on GitHub ↗
(cursor, fiber)

Source from the content-addressed store, hash-verified

11807 }
11808
11809 function pop(cursor, fiber) {
11810 if (index < 0) {
11811 {
11812 warning(false, 'Unexpected pop.');
11813 }
11814 return;
11815 }
11816
11817 {
11818 if (fiber !== fiberStack[index]) {
11819 warning(false, 'Unexpected Fiber popped.');
11820 }
11821 }
11822
11823 cursor.current = valueStack[index];
11824
11825 valueStack[index] = null;
11826
11827 {
11828 fiberStack[index] = null;
11829 }
11830
11831 index--;
11832 }
11833
11834 function push(cursor, value, fiber) {
11835 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