Commit 69c44d9
committed
fix(v2): guard per-card fetch cleanup by controller identity
An aborted per-card fetch's finally deleted the inFlightControllers entry
unconditionally. If the position was cancelled and quickly re-entered the
viewport, a replacement request could store a new controller under the
same rom:${position} key before the aborted request reached finally; the
unconditional delete then removed the new controller, so its response
failed the ownership check and the card stayed a skeleton.
Compare controller identity in both the success re-check and the finally
delete (mirroring fetchInitialMetadata) so a request only ever clears its
own entry.
Generated-By: PostHog Code
Task-Id: fe232494-3d20-4d83-9eaa-3ce341d4e7b51 parent 5790ff0 commit 69c44d9
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
382 | | - | |
383 | | - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
384 | 386 | | |
385 | 387 | | |
386 | 388 | | |
387 | 389 | | |
388 | 390 | | |
389 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
390 | 397 | | |
391 | 398 | | |
392 | 399 | | |
| |||
0 commit comments