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

Function pop

code/one-direction-data-flow/public/app.js:12449–12472  ·  view source on GitHub ↗
(cursor, fiber)

Source from the content-addressed store, hash-verified

12447 }
12448
12449 function pop(cursor, fiber) {
12450 if (index < 0) {
12451 {
12452 warning(false, 'Unexpected pop.');
12453 }
12454 return;
12455 }
12456
12457 {
12458 if (fiber !== fiberStack[index]) {
12459 warning(false, 'Unexpected Fiber popped.');
12460 }
12461 }
12462
12463 cursor.current = valueStack[index];
12464
12465 valueStack[index] = null;
12466
12467 {
12468 fiberStack[index] = null;
12469 }
12470
12471 index--;
12472 }
12473
12474 function push(cursor, value, fiber) {
12475 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