Commit c32780e
authored
[Fiber] Highlight hydration and offscreen render phases (#31752)
This highlights the render phase as the tertiary color (green) when
we're render a hydration lane or offscreen lane.
I call the "Render" phase "Hydrated" instead in this case. For the
offscreen case we don't currently have a differentiation between
hydrated or activity. I just called that "Prepared". Even for the
hydration case where there's no discovered client rendered boundaries
it's more like it's preparing for an interaction rather than blocking
one. Where as for the other lanes the hydration might block something.
<img width="1173" alt="Screenshot 2024-12-12 at 11 23 14 PM"
src="https://github.com/user-attachments/assets/49ab1508-840f-4188-a085-18fe94b14187"
/>
In a follow up I'd like to color the components in the Components tree
green if they were hydrated but not the ones that was actually client
rendered e.g. due to a mismatch or forced client rendering so you can
tell the difference. Unfortunately, the current signals we have for this
get reset earlier in the commit phase than when we log these.
Another thing is that a failed hydration should probably be colored red
even though it ends up committing successfully. I.e. a recoverable
error.1 parent d1dd7fe commit c32780e
File tree
3 files changed
+94
-17
lines changed- packages/react-reconciler/src
3 files changed
+94
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
624 | 636 | | |
625 | 637 | | |
626 | 638 | | |
| |||
Lines changed: 60 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
54 | | - | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| |||
223 | 230 | | |
224 | 231 | | |
225 | 232 | | |
| 233 | + | |
226 | 234 | | |
227 | 235 | | |
228 | 236 | | |
| |||
240 | 248 | | |
241 | 249 | | |
242 | 250 | | |
243 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
244 | 256 | | |
245 | 257 | | |
246 | 258 | | |
| |||
292 | 304 | | |
293 | 305 | | |
294 | 306 | | |
295 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
296 | 312 | | |
297 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
298 | 318 | | |
299 | 319 | | |
300 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
301 | 328 | | |
302 | 329 | | |
303 | 330 | | |
304 | 331 | | |
305 | 332 | | |
306 | 333 | | |
| 334 | + | |
307 | 335 | | |
308 | 336 | | |
309 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
310 | 342 | | |
311 | 343 | | |
312 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
313 | 352 | | |
314 | 353 | | |
315 | 354 | | |
316 | 355 | | |
317 | 356 | | |
318 | 357 | | |
| 358 | + | |
319 | 359 | | |
320 | 360 | | |
321 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
322 | 366 | | |
323 | 367 | | |
324 | 368 | | |
| |||
328 | 372 | | |
329 | 373 | | |
330 | 374 | | |
| 375 | + | |
331 | 376 | | |
332 | 377 | | |
333 | 378 | | |
334 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
335 | 384 | | |
336 | 385 | | |
337 | 386 | | |
| |||
341 | 390 | | |
342 | 391 | | |
343 | 392 | | |
| 393 | + | |
344 | 394 | | |
345 | 395 | | |
346 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
1038 | | - | |
| 1038 | + | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | 1041 | | |
| |||
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
1069 | | - | |
| 1069 | + | |
1070 | 1070 | | |
1071 | 1071 | | |
1072 | 1072 | | |
| |||
1207 | 1207 | | |
1208 | 1208 | | |
1209 | 1209 | | |
1210 | | - | |
| 1210 | + | |
1211 | 1211 | | |
1212 | 1212 | | |
1213 | 1213 | | |
| |||
1757 | 1757 | | |
1758 | 1758 | | |
1759 | 1759 | | |
1760 | | - | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
1761 | 1765 | | |
1762 | | - | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
1763 | 1771 | | |
1764 | 1772 | | |
1765 | 1773 | | |
| |||
1783 | 1791 | | |
1784 | 1792 | | |
1785 | 1793 | | |
| 1794 | + | |
1786 | 1795 | | |
1787 | 1796 | | |
1788 | 1797 | | |
| |||
1791 | 1800 | | |
1792 | 1801 | | |
1793 | 1802 | | |
| 1803 | + | |
1794 | 1804 | | |
1795 | 1805 | | |
1796 | 1806 | | |
| |||
1817 | 1827 | | |
1818 | 1828 | | |
1819 | 1829 | | |
| 1830 | + | |
1820 | 1831 | | |
1821 | 1832 | | |
1822 | 1833 | | |
| |||
3202 | 3213 | | |
3203 | 3214 | | |
3204 | 3215 | | |
3205 | | - | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
3206 | 3221 | | |
3207 | | - | |
| 3222 | + | |
3208 | 3223 | | |
3209 | 3224 | | |
3210 | 3225 | | |
| |||
0 commit comments