Commit 54d3118
committed
fix: log renders from passive effects for only newly finished work (#33797)
This fixes displaying incorrect component render entries on a timeline,
when we are reconnecting passive effects.
### Before
<img width="2318" height="1127" alt="1"
src="https://github.com/user-attachments/assets/9b6b2824-d2de-43a3-8615-2c45d67c3668"
/>
The cloned nodes will persist original `actualStartTime`, when these
were first mounted. When we "replay", the end time will be "now" or
whatever the actual start time of the sibling. Depending on when this is
being recorded, the diff between end and start could be tens of seconds
and doesn't represent what React was doing.
We shouldn't log these entries at all.
### After
We are only logging newly finished renders, but could potentially loose
renders that never commit.
DiffTrain build for [9fec565](9fec565)1 parent 981b703 commit 54d3118
File tree
24 files changed
+95
-87
lines changed- compiled-rn
- facebook-fbsource/xplat/js
- RKJSModules/vendor/react
- react-dom/cjs
- react-test-renderer/cjs
- react/cjs
- react-native-github/Libraries/Renderer
- implementations
- tools/eslint-plugin-react-hooks
24 files changed
+95
-87
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
408 | 408 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
16390 | 16390 | | |
16391 | 16391 | | |
16392 | 16392 | | |
| 16393 | + | |
16393 | 16394 | | |
16394 | 16395 | | |
16395 | 16396 | | |
| |||
29006 | 29007 | | |
29007 | 29008 | | |
29008 | 29009 | | |
29009 | | - | |
| 29010 | + | |
29010 | 29011 | | |
29011 | 29012 | | |
29012 | 29013 | | |
29013 | | - | |
| 29014 | + | |
29014 | 29015 | | |
29015 | 29016 | | |
29016 | 29017 | | |
| |||
29047 | 29048 | | |
29048 | 29049 | | |
29049 | 29050 | | |
29050 | | - | |
| 29051 | + | |
29051 | 29052 | | |
29052 | 29053 | | |
29053 | | - | |
| 29054 | + | |
29054 | 29055 | | |
29055 | 29056 | | |
29056 | 29057 | | |
| |||
29188 | 29189 | | |
29189 | 29190 | | |
29190 | 29191 | | |
29191 | | - | |
| 29192 | + | |
29192 | 29193 | | |
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
17123 | 17123 | | |
17124 | 17124 | | |
17125 | 17125 | | |
17126 | | - | |
| 17126 | + | |
17127 | 17127 | | |
17128 | 17128 | | |
17129 | 17129 | | |
17130 | 17130 | | |
17131 | 17131 | | |
17132 | 17132 | | |
17133 | | - | |
| 17133 | + | |
17134 | 17134 | | |
17135 | 17135 | | |
17136 | 17136 | | |
| |||
17152 | 17152 | | |
17153 | 17153 | | |
17154 | 17154 | | |
17155 | | - | |
| 17155 | + | |
17156 | 17156 | | |
17157 | 17157 | | |
17158 | | - | |
| 17158 | + | |
17159 | 17159 | | |
17160 | 17160 | | |
17161 | 17161 | | |
| |||
17253 | 17253 | | |
17254 | 17254 | | |
17255 | 17255 | | |
17256 | | - | |
| 17256 | + | |
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
12224 | 12224 | | |
12225 | 12225 | | |
12226 | 12226 | | |
| 12227 | + | |
12227 | 12228 | | |
12228 | 12229 | | |
12229 | 12230 | | |
| |||
19080 | 19081 | | |
19081 | 19082 | | |
19082 | 19083 | | |
19083 | | - | |
| 19084 | + | |
19084 | 19085 | | |
19085 | 19086 | | |
19086 | 19087 | | |
19087 | 19088 | | |
19088 | 19089 | | |
19089 | 19090 | | |
19090 | | - | |
| 19091 | + | |
19091 | 19092 | | |
19092 | 19093 | | |
19093 | 19094 | | |
| |||
19109 | 19110 | | |
19110 | 19111 | | |
19111 | 19112 | | |
19112 | | - | |
| 19113 | + | |
19113 | 19114 | | |
19114 | 19115 | | |
19115 | | - | |
| 19116 | + | |
19116 | 19117 | | |
19117 | 19118 | | |
19118 | 19119 | | |
| |||
19225 | 19226 | | |
19226 | 19227 | | |
19227 | 19228 | | |
19228 | | - | |
| 19229 | + | |
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
16398 | 16398 | | |
16399 | 16399 | | |
16400 | 16400 | | |
| 16401 | + | |
16401 | 16402 | | |
16402 | 16403 | | |
16403 | 16404 | | |
| |||
29062 | 29063 | | |
29063 | 29064 | | |
29064 | 29065 | | |
29065 | | - | |
| 29066 | + | |
29066 | 29067 | | |
29067 | 29068 | | |
29068 | 29069 | | |
29069 | | - | |
| 29070 | + | |
29070 | 29071 | | |
29071 | 29072 | | |
29072 | 29073 | | |
| |||
29103 | 29104 | | |
29104 | 29105 | | |
29105 | 29106 | | |
29106 | | - | |
| 29107 | + | |
29107 | 29108 | | |
29108 | 29109 | | |
29109 | | - | |
| 29110 | + | |
29110 | 29111 | | |
29111 | 29112 | | |
29112 | 29113 | | |
| |||
29560 | 29561 | | |
29561 | 29562 | | |
29562 | 29563 | | |
29563 | | - | |
| 29564 | + | |
29564 | 29565 | | |
29565 | 29566 | | |
29566 | 29567 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
17134 | 17134 | | |
17135 | 17135 | | |
17136 | 17136 | | |
17137 | | - | |
| 17137 | + | |
17138 | 17138 | | |
17139 | 17139 | | |
17140 | 17140 | | |
17141 | 17141 | | |
17142 | 17142 | | |
17143 | 17143 | | |
17144 | | - | |
| 17144 | + | |
17145 | 17145 | | |
17146 | 17146 | | |
17147 | 17147 | | |
| |||
17163 | 17163 | | |
17164 | 17164 | | |
17165 | 17165 | | |
17166 | | - | |
| 17166 | + | |
17167 | 17167 | | |
17168 | 17168 | | |
17169 | | - | |
| 17169 | + | |
17170 | 17170 | | |
17171 | 17171 | | |
17172 | 17172 | | |
| |||
17417 | 17417 | | |
17418 | 17418 | | |
17419 | 17419 | | |
17420 | | - | |
| 17420 | + | |
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
12228 | 12228 | | |
12229 | 12229 | | |
12230 | 12230 | | |
| 12231 | + | |
12231 | 12232 | | |
12232 | 12233 | | |
12233 | 12234 | | |
| |||
19095 | 19096 | | |
19096 | 19097 | | |
19097 | 19098 | | |
19098 | | - | |
| 19099 | + | |
19099 | 19100 | | |
19100 | 19101 | | |
19101 | 19102 | | |
19102 | 19103 | | |
19103 | 19104 | | |
19104 | 19105 | | |
19105 | | - | |
| 19106 | + | |
19106 | 19107 | | |
19107 | 19108 | | |
19108 | 19109 | | |
| |||
19124 | 19125 | | |
19125 | 19126 | | |
19126 | 19127 | | |
19127 | | - | |
| 19128 | + | |
19128 | 19129 | | |
19129 | 19130 | | |
19130 | | - | |
| 19131 | + | |
19131 | 19132 | | |
19132 | 19133 | | |
19133 | 19134 | | |
| |||
19393 | 19394 | | |
19394 | 19395 | | |
19395 | 19396 | | |
19396 | | - | |
| 19397 | + | |
19397 | 19398 | | |
19398 | 19399 | | |
19399 | 19400 | | |
| |||
0 commit comments