Repository navigation
Commit fc280f2
committed
fix(data): prevent publish from racing with loads, using wrong sequence, and wiping cache
- Assign the publish promise to entry.inflight so load() joins it
instead of starting a competing network request during validation.
- Capture startedSeq at publish start, not after parse, so writes
that confirm during validation keep their overlay.
- On a refused publish with no in-memory base, skip invalidateEntry
(which would delete the persisted copy) and start a load if observed.1 parent a8e63b3 commit fc280f2
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1364 | 1364 | | |
1365 | 1365 | | |
1366 | 1366 | | |
| 1367 | + | |
1367 | 1368 | | |
1368 | 1369 | | |
1369 | | - | |
| 1370 | + | |
1370 | 1371 | | |
1371 | 1372 | | |
1372 | 1373 | | |
1373 | 1374 | | |
1374 | | - | |
| 1375 | + | |
| 1376 | + | |
1375 | 1377 | | |
1376 | 1378 | | |
1377 | 1379 | | |
1378 | 1380 | | |
1379 | 1381 | | |
1380 | | - | |
1381 | | - | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
1382 | 1392 | | |
1383 | 1393 | | |
1384 | 1394 | | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
1385 | 1398 | | |
1386 | 1399 | | |
1387 | 1400 | | |
| |||
0 commit comments