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

Function popAllPrevious

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

Source from the content-addressed store, hash-verified

86}
87
88function popAllPrevious(prev: ContextNode<any>): void {
89 popNode(prev);
90 const parentPrev = prev.parent;
91 if (parentPrev !== null) {
92 popAllPrevious(parentPrev);
93 }
94}
95
96function pushAllNext(next: ContextNode<any>): void {
97 const parentNext = next.parent;

Callers 1

switchContextFunction · 0.85

Calls 1

popNodeFunction · 0.85

Tested by

no test coverage detected