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

Function pop

code/new-context-api/public/app.js:11937–11960  ·  view source on GitHub ↗
(cursor, fiber)

Source from the content-addressed store, hash-verified

11935 }
11936
11937 function pop(cursor, fiber) {
11938 if (index < 0) {
11939 {
11940 warning(false, 'Unexpected pop.');
11941 }
11942 return;
11943 }
11944
11945 {
11946 if (fiber !== fiberStack[index]) {
11947 warning(false, 'Unexpected Fiber popped.');
11948 }
11949 }
11950
11951 cursor.current = valueStack[index];
11952
11953 valueStack[index] = null;
11954
11955 {
11956 fiberStack[index] = null;
11957 }
11958
11959 index--;
11960 }
11961
11962 function push(cursor, value, fiber) {
11963 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