Repository navigation
Commit df430e7
committed
fix(chats): stop reading a deleted chat while its view is still mounted
Removing the detail entry under a live observer rebuilt it on the next render
and fetched the chat that was just deleted: a 404 and a load error until the
navigation landed. Cancel what is in flight and remove the entry when its last
reader leaves.1 parent ad94fcd commit df430e7
2 files changed
Lines changed: 66 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
104 | 146 | | |
105 | 147 | | |
106 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
519 | 541 | | |
520 | 542 | | |
521 | 543 | | |
| |||
526 | 548 | | |
527 | 549 | | |
528 | 550 | | |
529 | | - | |
| 551 | + | |
530 | 552 | | |
531 | 553 | | |
532 | 554 | | |
| |||
575 | 597 | | |
576 | 598 | | |
577 | 599 | | |
578 | | - | |
| 600 | + | |
579 | 601 | | |
580 | 602 | | |
581 | 603 | | |
| |||
0 commit comments