This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Commit 6731ad0
feat: make fetch() zone-aware without triggering extra requests or uncatchable errors. (#622)
* Instrument with probePromise()
* De-instrument (probePromise).
* Introduce helper function to wraps any function returning a promise, ensuring a ZoneAwarePromise is returned. Use it on fetch().
* Minor readability improvement.
* No need to wrap result promise in ZoneAwarePromise after patching its constructor.
* Remove promise prober from karma build conf.
* Address linter issues.
* Use const.1 parent d6772e2 commit 6731ad0
1 file changed
Lines changed: 34 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1325 | 1325 | | |
1326 | 1326 | | |
1327 | 1327 | | |
1328 | | - | |
| 1328 | + | |
1329 | 1329 | | |
1330 | | - | |
1331 | | - | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1340 | 1344 | | |
| 1345 | + | |
1341 | 1346 | | |
1342 | 1347 | | |
1343 | | - | |
1344 | | - | |
1345 | | - | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
1352 | | - | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
1353 | 1353 | | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
1359 | 1357 | | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
1360 | 1368 | | |
1361 | 1369 | | |
1362 | 1370 | | |
| |||
0 commit comments