Commit ca7d792
committed
Drop enable_shared_from_this from RCTImageResponseObserverProxy
Review feedback: the address comparison in RCTImageComponentView is
enough on its own. The new proxy is allocated before the previous one is
released, so consecutive subscriptions never share an address. Reuse is
only possible after two resubscriptions while a callback from the first
one is still queued.
This leaves RCTImageResponseObserverProxy and the C++ API snapshots
unchanged.1 parent 1000f1b commit ca7d792
6 files changed
Lines changed: 12 additions & 15 deletions
File tree
- packages/react-native/React/Fabric
- Mounting/ComponentViews/Image
- scripts/cxx-api/api-snapshots
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
| |||
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 18 | + | |
24 | 19 | | |
25 | 20 | | |
26 | 21 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6396 | 6396 | | |
6397 | 6397 | | |
6398 | 6398 | | |
6399 | | - | |
| 6399 | + | |
6400 | 6400 | | |
6401 | 6401 | | |
6402 | 6402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6272 | 6272 | | |
6273 | 6273 | | |
6274 | 6274 | | |
6275 | | - | |
| 6275 | + | |
6276 | 6276 | | |
6277 | 6277 | | |
6278 | 6278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6393 | 6393 | | |
6394 | 6394 | | |
6395 | 6395 | | |
6396 | | - | |
| 6396 | + | |
6397 | 6397 | | |
6398 | 6398 | | |
6399 | 6399 | | |
| |||
0 commit comments