MCPcopy Index your code
hub / github.com/react/react / propagateContextChange

Function propagateContextChange

packages/react-reconciler/src/ReactFiberNewContext.js:191–206  ·  view source on GitHub ↗
(
  workInProgress: Fiber,
  context: ReactContext<T>,
  renderLanes: Lanes,
)

Source from the content-addressed store, hash-verified

189}
190
191export function propagateContextChange<T>(
192 workInProgress: Fiber,
193 context: ReactContext<T>,
194 renderLanes: Lanes,
195): void {
196 // TODO: This path is only used by Cache components. Update
197 // lazilyPropagateParentContextChanges to look for Cache components so they
198 // can take advantage of lazy propagation.
199 const forcePropagateEntireTree = true;
200 propagateContextChanges(
201 workInProgress,
202 [context],
203 renderLanes,
204 forcePropagateEntireTree,
205 );
206}
207
208function propagateContextChanges<T>(
209 workInProgress: Fiber,

Callers 2

updateCacheComponentFunction · 0.90
updateHostRootFunction · 0.90

Calls 1

propagateContextChangesFunction · 0.85

Tested by

no test coverage detected