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

Function pop

code/communication/public/app.js:12611–12634  ·  view source on GitHub ↗
(cursor, fiber)

Source from the content-addressed store, hash-verified

12609 }
12610
12611 function pop(cursor, fiber) {
12612 if (index < 0) {
12613 {
12614 warning(false, 'Unexpected pop.');
12615 }
12616 return;
12617 }
12618
12619 {
12620 if (fiber !== fiberStack[index]) {
12621 warning(false, 'Unexpected Fiber popped.');
12622 }
12623 }
12624
12625 cursor.current = valueStack[index];
12626
12627 valueStack[index] = null;
12628
12629 {
12630 fiberStack[index] = null;
12631 }
12632
12633 index--;
12634 }
12635
12636 function push(cursor, value, fiber) {
12637 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