Commit c56b0ed
committed
Prerender during same pass if blocked anyway (#30879)
If something suspends in the shell — i.e. we won't replace the suspended
content with a fallback — we might as well prerender the siblings during
the current render pass, instead of spawning a separate prerender pass.
This is implemented by setting the "is prerendering" flag to true
whenever we suspend in the shell. But only if we haven't already skipped
over some siblings, because if so, then we need to schedule a separate
prerender pass regardless.
DiffTrain build for commit 66cf2cf.1 parent 12971be commit c56b0ed
File tree
14 files changed
+62
-44
lines changed- compiled-rn
- facebook-fbsource/xplat/js
- RKJSModules/vendor/react
- react-test-renderer/cjs
- react/cjs
- react-native-github/Libraries/Renderer
- implementations
14 files changed
+62
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 4 additions & 4 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 | | |
| |||
15057 | 15057 | | |
15058 | 15058 | | |
15059 | 15059 | | |
15060 | | - | |
| 15060 | + | |
15061 | 15061 | | |
15062 | 15062 | | |
15063 | 15063 | | |
15064 | | - | |
| 15064 | + | |
15065 | 15065 | | |
15066 | 15066 | | |
15067 | 15067 | | |
| |||
15206 | 15206 | | |
15207 | 15207 | | |
15208 | 15208 | | |
15209 | | - | |
| 15209 | + | |
15210 | 15210 | | |
Lines changed: 4 additions & 4 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 | | |
| |||
9445 | 9445 | | |
9446 | 9446 | | |
9447 | 9447 | | |
9448 | | - | |
| 9448 | + | |
9449 | 9449 | | |
9450 | 9450 | | |
9451 | 9451 | | |
9452 | 9452 | | |
9453 | 9453 | | |
9454 | 9454 | | |
9455 | | - | |
| 9455 | + | |
9456 | 9456 | | |
9457 | 9457 | | |
9458 | 9458 | | |
| |||
9588 | 9588 | | |
9589 | 9589 | | |
9590 | 9590 | | |
9591 | | - | |
| 9591 | + | |
Lines changed: 4 additions & 4 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 | | |
| |||
10033 | 10033 | | |
10034 | 10034 | | |
10035 | 10035 | | |
10036 | | - | |
| 10036 | + | |
10037 | 10037 | | |
10038 | 10038 | | |
10039 | 10039 | | |
10040 | 10040 | | |
10041 | 10041 | | |
10042 | 10042 | | |
10043 | | - | |
| 10043 | + | |
10044 | 10044 | | |
10045 | 10045 | | |
10046 | 10046 | | |
| |||
10191 | 10191 | | |
10192 | 10192 | | |
10193 | 10193 | | |
10194 | | - | |
| 10194 | + | |
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 | | |
| |||
1705 | 1705 | | |
1706 | 1706 | | |
1707 | 1707 | | |
1708 | | - | |
| 1708 | + | |
1709 | 1709 | | |
1710 | 1710 | | |
1711 | 1711 | | |
| |||
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 | | |
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
| 583 | + | |
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 | | |
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
| 587 | + | |
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 6 additions & 3 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 | | |
| |||
12265 | 12265 | | |
12266 | 12266 | | |
12267 | 12267 | | |
| 12268 | + | |
| 12269 | + | |
| 12270 | + | |
12268 | 12271 | | |
12269 | 12272 | | |
12270 | 12273 | | |
| |||
17030 | 17033 | | |
17031 | 17034 | | |
17032 | 17035 | | |
17033 | | - | |
| 17036 | + | |
17034 | 17037 | | |
17035 | 17038 | | |
17036 | 17039 | | |
17037 | | - | |
| 17040 | + | |
17038 | 17041 | | |
17039 | 17042 | | |
17040 | 17043 | | |
| |||
Lines changed: 6 additions & 3 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 | | |
| |||
9641 | 9641 | | |
9642 | 9642 | | |
9643 | 9643 | | |
| 9644 | + | |
| 9645 | + | |
| 9646 | + | |
9644 | 9647 | | |
9645 | 9648 | | |
9646 | 9649 | | |
| |||
10975 | 10978 | | |
10976 | 10979 | | |
10977 | 10980 | | |
10978 | | - | |
| 10981 | + | |
10979 | 10982 | | |
10980 | 10983 | | |
10981 | 10984 | | |
10982 | | - | |
| 10985 | + | |
10983 | 10986 | | |
10984 | 10987 | | |
10985 | 10988 | | |
| |||
0 commit comments