Skip to content

Commit 05a98de

Browse files
authored
Handle OffscreenComponent as well
1 parent f8ccb99 commit 05a98de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-reconciler/src/ReactFiberCommitWork.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3756,7 +3756,7 @@ function commitPassiveMountOnFiber(
37563756
) {
37573757
// Log the reappear in the render phase.
37583758
const startTime = ((finishedWork.actualStartTime: any): number);
3759-
if (endTime - startTime > 0.05) {
3759+
if (startTime >= 0 && endTime - startTime > 0.05) {
37603760
logComponentReappeared(finishedWork, startTime, endTime);
37613761
}
37623762
if (

0 commit comments

Comments
 (0)