Commit a42971a
Avoid errors when dispatching mount operations within mount hooks (#50091)
Summary:
Pull Request resolved: #50091
Changelog: [internal]
If a library uses mount hooks to perform mount operations, it's possible to get concurrent modifications of the list of pending surface IDs to report.
This fixes that potential error by making a copy of the list before dispatching the mount notifications.
Fixes #49783.
Reviewed By: javache
Differential Revision: D71387739
fbshipit-source-id: 96c723ef2d6bcc659c4452434b7a4d5af26117ef1 parent 4e4b9ba commit a42971a
1 file changed
Lines changed: 11 additions & 8 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
1254 | 1254 | | |
1255 | 1255 | | |
1256 | 1256 | | |
1257 | | - | |
1258 | | - | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
1259 | 1260 | | |
1260 | 1261 | | |
1261 | 1262 | | |
1262 | | - | |
| 1263 | + | |
1263 | 1264 | | |
1264 | 1265 | | |
1265 | 1266 | | |
| |||
1271 | 1272 | | |
1272 | 1273 | | |
1273 | 1274 | | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
1274 | 1280 | | |
1275 | 1281 | | |
1276 | | - | |
1277 | 1282 | | |
1278 | 1283 | | |
1279 | 1284 | | |
1280 | | - | |
| 1285 | + | |
1281 | 1286 | | |
1282 | 1287 | | |
1283 | | - | |
1284 | | - | |
1285 | 1288 | | |
1286 | 1289 | | |
1287 | 1290 | | |
| |||
0 commit comments