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

Function pop

code/controlled-uncontrolled/public/app.js:11900–11923  ·  view source on GitHub ↗
(cursor, fiber)

Source from the content-addressed store, hash-verified

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