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

Function pop

code/event-handlers/public/app.js:11906–11929  ·  view source on GitHub ↗
(cursor, fiber)

Source from the content-addressed store, hash-verified

11904 }
11905
11906 function pop(cursor, fiber) {
11907 if (index < 0) {
11908 {
11909 warning(false, 'Unexpected pop.');
11910 }
11911 return;
11912 }
11913
11914 {
11915 if (fiber !== fiberStack[index]) {
11916 warning(false, 'Unexpected Fiber popped.');
11917 }
11918 }
11919
11920 cursor.current = valueStack[index];
11921
11922 valueStack[index] = null;
11923
11924 {
11925 fiberStack[index] = null;
11926 }
11927
11928 index--;
11929 }
11930
11931 function push(cursor, value, fiber) {
11932 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