Commit cecbf4f
committed
[Fizz] handle errors in
`onHeaders` can throw however for now we can assume that headers are
optimistic values since the only things we produce for them are preload
links. This is a pragmatic decision because React could concievably have
headers in the future which were not optimistic and thus non-optional
however it is hard to imagine what these headers might be in practice.
If we need to change this behavior to be fatal in the future it would be
a breaking change.
This commit adds error logging when `onHeaders` throws and ensures the
request can continue to render successfully.
DiffTrain build for [ee68446](ee68446)onHeaders (#27712)1 parent 9e50f2a commit cecbf4f
File tree
9 files changed
+298
-284
lines changed- compiled/facebook-www
9 files changed
+298
-284
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9905 | 9905 | | |
9906 | 9906 | | |
9907 | 9907 | | |
9908 | | - | |
| 9908 | + | |
9909 | 9909 | | |
9910 | 9910 | | |
9911 | 9911 | | |
| |||
9936 | 9936 | | |
9937 | 9937 | | |
9938 | 9938 | | |
9939 | | - | |
| 9939 | + | |
9940 | 9940 | | |
9941 | 9941 | | |
9942 | 9942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
7698 | 7698 | | |
7699 | 7699 | | |
7700 | 7700 | | |
| 7701 | + | |
| 7702 | + | |
| 7703 | + | |
7701 | 7704 | | |
7702 | 7705 | | |
7703 | 7706 | | |
| |||
7780 | 7783 | | |
7781 | 7784 | | |
7782 | 7785 | | |
7783 | | - | |
7784 | 7786 | | |
7785 | 7787 | | |
7786 | 7788 | | |
| |||
13219 | 13221 | | |
13220 | 13222 | | |
13221 | 13223 | | |
| 13224 | + | |
| 13225 | + | |
| 13226 | + | |
| 13227 | + | |
| 13228 | + | |
| 13229 | + | |
| 13230 | + | |
| 13231 | + | |
| 13232 | + | |
| 13233 | + | |
| 13234 | + | |
| 13235 | + | |
| 13236 | + | |
13222 | 13237 | | |
13223 | 13238 | | |
13224 | 13239 | | |
| |||
13231 | 13246 | | |
13232 | 13247 | | |
13233 | 13248 | | |
13234 | | - | |
13235 | | - | |
13236 | | - | |
13237 | | - | |
13238 | | - | |
| 13249 | + | |
13239 | 13250 | | |
13240 | 13251 | | |
13241 | 13252 | | |
| |||
13255 | 13266 | | |
13256 | 13267 | | |
13257 | 13268 | | |
13258 | | - | |
13259 | | - | |
13260 | | - | |
13261 | | - | |
13262 | | - | |
| 13269 | + | |
13263 | 13270 | | |
13264 | 13271 | | |
13265 | 13272 | | |
| |||
14102 | 14109 | | |
14103 | 14110 | | |
14104 | 14111 | | |
14105 | | - | |
14106 | | - | |
14107 | | - | |
14108 | | - | |
14109 | | - | |
| 14112 | + | |
14110 | 14113 | | |
14111 | 14114 | | |
14112 | 14115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
7698 | 7698 | | |
7699 | 7699 | | |
7700 | 7700 | | |
| 7701 | + | |
| 7702 | + | |
| 7703 | + | |
7701 | 7704 | | |
7702 | 7705 | | |
7703 | 7706 | | |
| |||
7780 | 7783 | | |
7781 | 7784 | | |
7782 | 7785 | | |
7783 | | - | |
7784 | 7786 | | |
7785 | 7787 | | |
7786 | 7788 | | |
| |||
12947 | 12949 | | |
12948 | 12950 | | |
12949 | 12951 | | |
| 12952 | + | |
| 12953 | + | |
| 12954 | + | |
| 12955 | + | |
| 12956 | + | |
| 12957 | + | |
| 12958 | + | |
| 12959 | + | |
| 12960 | + | |
| 12961 | + | |
| 12962 | + | |
| 12963 | + | |
| 12964 | + | |
12950 | 12965 | | |
12951 | 12966 | | |
12952 | 12967 | | |
| |||
12959 | 12974 | | |
12960 | 12975 | | |
12961 | 12976 | | |
12962 | | - | |
12963 | | - | |
12964 | | - | |
12965 | | - | |
12966 | | - | |
| 12977 | + | |
12967 | 12978 | | |
12968 | 12979 | | |
12969 | 12980 | | |
| |||
12983 | 12994 | | |
12984 | 12995 | | |
12985 | 12996 | | |
12986 | | - | |
12987 | | - | |
12988 | | - | |
12989 | | - | |
12990 | | - | |
| 12997 | + | |
12991 | 12998 | | |
12992 | 12999 | | |
12993 | 13000 | | |
| |||
13830 | 13837 | | |
13831 | 13838 | | |
13832 | 13839 | | |
13833 | | - | |
13834 | | - | |
13835 | | - | |
13836 | | - | |
13837 | | - | |
| 13840 | + | |
13838 | 13841 | | |
13839 | 13842 | | |
13840 | 13843 | | |
| |||
0 commit comments