Commit aa75e94
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 eb8c1c3 commit aa75e94
File tree
1 file changed
+11
-8
lines changed- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric
1 file changed
+11
-8
lines changedLines 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 | | |
| |||
1250 | 1250 | | |
1251 | 1251 | | |
1252 | 1252 | | |
1253 | | - | |
1254 | | - | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
1255 | 1256 | | |
1256 | 1257 | | |
1257 | 1258 | | |
1258 | | - | |
| 1259 | + | |
1259 | 1260 | | |
1260 | 1261 | | |
1261 | 1262 | | |
| |||
1267 | 1268 | | |
1268 | 1269 | | |
1269 | 1270 | | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
1270 | 1276 | | |
1271 | 1277 | | |
1272 | | - | |
1273 | 1278 | | |
1274 | 1279 | | |
1275 | 1280 | | |
1276 | | - | |
| 1281 | + | |
1277 | 1282 | | |
1278 | 1283 | | |
1279 | | - | |
1280 | | - | |
1281 | 1284 | | |
1282 | 1285 | | |
1283 | 1286 | | |
| |||
0 commit comments