MCPcopy
hub / github.com/facebook/react / popNode

Function popNode

packages/react-server/src/ReactFizzNewContext.js:41–47  ·  view source on GitHub ↗
(prev: ContextNode<any>)

Source from the content-addressed store, hash-verified

39let currentActiveSnapshot: ContextSnapshot = null;
40
41function popNode(prev: ContextNode<any>): void {
42 if (isPrimaryRenderer) {
43 prev.context._currentValue = prev.parentValue;
44 } else {
45 prev.context._currentValue2 = prev.parentValue;
46 }
47}
48
49function pushNode(next: ContextNode<any>): void {
50 if (isPrimaryRenderer) {

Callers 3

popAllPreviousFunction · 0.85
popPreviousToCommonLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected