Repository navigation
Commit beb056f
committed
fix(data): do not overwrite unsaved kept reply with a newer one
When overlapping loads complete for the same key, the newer reply
overwrote the kept map entry before the older tab flushed its valueless
save. If the newer reply was never saved (validation failed, or the tab
never persisted it), the already-validated older value was silently
dropped, causing data loss on restart.
Guard kept.set so an existing entry whose at exceeds newestSaved is
never overwritten. The newer tab receives kept: false and sends the full
value in its save instead.1 parent 885557e commit beb056f
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
501 | | - | |
502 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
503 | 508 | | |
504 | 509 | | |
505 | 510 | | |
| |||
0 commit comments