Skip to content

Commit

Permalink
Add back accidentally removed comment
Browse files Browse the repository at this point in the history
Oops
  • Loading branch information
acdlite committed Apr 2, 2023
1 parent f32ae1d commit 7875d3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-reconciler/src/ReactFiberBeginWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,10 @@ export function replayFunctionComponent(
secondArg: any,
renderLanes: Lanes,
): Fiber | null {
// This function is used to replay a component that previously suspended,
// after its data resolves. It's a simplified version of
// updateFunctionComponent that reuses the hooks from the previous attempt.

prepareToReadContext(workInProgress, renderLanes);
if (enableSchedulingProfiler) {
markComponentRenderStarted(workInProgress);
Expand Down

0 comments on commit 7875d3d

Please sign in to comment.