Commit 970fa12
authored
Use lanes to check if a render is a Suspense retry (#19307)
Now that Suspense retries have their own dedicated set of lanes
(#19287), we can determine if a render includes only retries by checking
if its lanes are a subset of the retry lanes.
Previously we inferred this by checking
`workInProgressRootLatestProcessedEventTime`. If it's not set, that
implies that no updates were processed in the current render, which
implies it must be a Suspense retry. The eventual plan is to get rid of
`workInProgressRootLatestProcessedEventTime` and instead track event
times on the root; this change is one the steps toward that goal.
The relevant tests were originally added in #15769.1 parent 2663a12 commit 970fa12
File tree
3 files changed
+18
-31
lines changed- packages/react-reconciler/src
3 files changed
+18
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
457 | 460 | | |
458 | 461 | | |
459 | 462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
847 | 848 | | |
848 | 849 | | |
849 | 850 | | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | 851 | | |
856 | | - | |
| 852 | + | |
857 | 853 | | |
858 | 854 | | |
859 | 855 | | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
| 856 | + | |
| 857 | + | |
866 | 858 | | |
867 | 859 | | |
868 | 860 | | |
| |||
1475 | 1467 | | |
1476 | 1468 | | |
1477 | 1469 | | |
1478 | | - | |
1479 | | - | |
| 1470 | + | |
| 1471 | + | |
1480 | 1472 | | |
1481 | 1473 | | |
1482 | 1474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
870 | 871 | | |
871 | 872 | | |
872 | 873 | | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | 874 | | |
879 | | - | |
| 875 | + | |
880 | 876 | | |
881 | 877 | | |
882 | 878 | | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
| 879 | + | |
| 880 | + | |
889 | 881 | | |
890 | 882 | | |
891 | 883 | | |
| |||
1498 | 1490 | | |
1499 | 1491 | | |
1500 | 1492 | | |
1501 | | - | |
1502 | | - | |
| 1493 | + | |
| 1494 | + | |
1503 | 1495 | | |
1504 | 1496 | | |
1505 | 1497 | | |
| |||
0 commit comments