( workInProgress: Fiber, context: ReactContext<T>, renderLanes: Lanes, )
| 189 | } |
| 190 | |
| 191 | export 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 | |
| 208 | function propagateContextChanges<T>( |
| 209 | workInProgress: Fiber, |
no test coverage detected