Commit 6db4aa0
committed
[Flight] Emit Partial Debug Info if we have any at the point of aborting a render (#33632)
When we abort a render we don't really have much information about the
task that was aborted. Because before a Promise resolves there's no
indication about would have resolved it. In particular we don't know
which I/O would've ultimately called resolve().
However, we can at least emit any information we do have at the point
where we emit it. At the least the stack of the top most Promise.
Currently we synchronously flush at the end of an `abort()` but we
should ideally schedule the flush in a macrotask and emit this debug
information right before that. That way we would give an opportunity for
any `cacheSignal()` abort to trigger rejections all the way up and those
rejections informs the awaited stack.
---------
Co-authored-by: Hendrik Liebau <mail@hendrik-liebau.de>
DiffTrain build for [e67b4fe](e67b4fe)1 parent 99aa3a2 commit 6db4aa0
File tree
24 files changed
+721
-651
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
+721
-651
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: 159 additions & 145 deletions
Large diffs are not rendered by default.
Lines changed: 28 additions & 28 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 | | |
| |||
12992 | 12992 | | |
12993 | 12993 | | |
12994 | 12994 | | |
12995 | | - | |
12996 | | - | |
12997 | | - | |
| 12995 | + | |
| 12996 | + | |
| 12997 | + | |
12998 | 12998 | | |
12999 | | - | |
13000 | | - | |
13001 | | - | |
13002 | | - | |
13003 | | - | |
13004 | | - | |
13005 | | - | |
| 12999 | + | |
| 13000 | + | |
| 13001 | + | |
| 13002 | + | |
| 13003 | + | |
| 13004 | + | |
| 13005 | + | |
13006 | 13006 | | |
13007 | | - | |
13008 | | - | |
| 13007 | + | |
| 13008 | + | |
13009 | 13009 | | |
13010 | 13010 | | |
13011 | 13011 | | |
| |||
17119 | 17119 | | |
17120 | 17120 | | |
17121 | 17121 | | |
17122 | | - | |
| 17122 | + | |
17123 | 17123 | | |
17124 | | - | |
17125 | | - | |
| 17124 | + | |
| 17125 | + | |
17126 | 17126 | | |
17127 | 17127 | | |
17128 | 17128 | | |
17129 | 17129 | | |
17130 | | - | |
17131 | | - | |
| 17130 | + | |
| 17131 | + | |
17132 | 17132 | | |
17133 | 17133 | | |
17134 | 17134 | | |
| |||
17148 | 17148 | | |
17149 | 17149 | | |
17150 | 17150 | | |
17151 | | - | |
| 17151 | + | |
17152 | 17152 | | |
17153 | | - | |
| 17153 | + | |
17154 | 17154 | | |
17155 | 17155 | | |
17156 | | - | |
| 17156 | + | |
17157 | 17157 | | |
17158 | 17158 | | |
17159 | | - | |
| 17159 | + | |
17160 | 17160 | | |
17161 | | - | |
17162 | | - | |
| 17161 | + | |
| 17162 | + | |
17163 | 17163 | | |
17164 | 17164 | | |
17165 | | - | |
17166 | | - | |
| 17165 | + | |
| 17166 | + | |
17167 | 17167 | | |
17168 | | - | |
| 17168 | + | |
17169 | 17169 | | |
17170 | 17170 | | |
17171 | 17171 | | |
| |||
17251 | 17251 | | |
17252 | 17252 | | |
17253 | 17253 | | |
17254 | | - | |
| 17254 | + | |
Lines changed: 28 additions & 28 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 | | |
| |||
14906 | 14906 | | |
14907 | 14907 | | |
14908 | 14908 | | |
14909 | | - | |
14910 | | - | |
14911 | | - | |
| 14909 | + | |
| 14910 | + | |
| 14911 | + | |
14912 | 14912 | | |
14913 | | - | |
14914 | | - | |
14915 | | - | |
14916 | | - | |
14917 | | - | |
14918 | | - | |
14919 | | - | |
| 14913 | + | |
| 14914 | + | |
| 14915 | + | |
| 14916 | + | |
| 14917 | + | |
| 14918 | + | |
| 14919 | + | |
14920 | 14920 | | |
14921 | | - | |
14922 | | - | |
| 14921 | + | |
| 14922 | + | |
14923 | 14923 | | |
14924 | 14924 | | |
14925 | 14925 | | |
| |||
19051 | 19051 | | |
19052 | 19052 | | |
19053 | 19053 | | |
19054 | | - | |
| 19054 | + | |
19055 | 19055 | | |
19056 | | - | |
19057 | | - | |
| 19056 | + | |
| 19057 | + | |
19058 | 19058 | | |
19059 | 19059 | | |
19060 | 19060 | | |
19061 | 19061 | | |
19062 | | - | |
19063 | | - | |
| 19062 | + | |
| 19063 | + | |
19064 | 19064 | | |
19065 | 19065 | | |
19066 | 19066 | | |
| |||
19080 | 19080 | | |
19081 | 19081 | | |
19082 | 19082 | | |
19083 | | - | |
| 19083 | + | |
19084 | 19084 | | |
19085 | | - | |
| 19085 | + | |
19086 | 19086 | | |
19087 | 19087 | | |
19088 | | - | |
| 19088 | + | |
19089 | 19089 | | |
19090 | 19090 | | |
19091 | 19091 | | |
| |||
19103 | 19103 | | |
19104 | 19104 | | |
19105 | 19105 | | |
19106 | | - | |
| 19106 | + | |
19107 | 19107 | | |
19108 | | - | |
19109 | | - | |
| 19108 | + | |
| 19109 | + | |
19110 | 19110 | | |
19111 | 19111 | | |
19112 | | - | |
19113 | | - | |
| 19112 | + | |
| 19113 | + | |
19114 | 19114 | | |
19115 | | - | |
| 19115 | + | |
19116 | 19116 | | |
19117 | 19117 | | |
19118 | 19118 | | |
| |||
19198 | 19198 | | |
19199 | 19199 | | |
19200 | 19200 | | |
19201 | | - | |
| 19201 | + | |
0 commit comments