v3: various improvements and fixes to real-time updates
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 40s

This commit is contained in:
khannurien
2026-06-29 07:52:56 +00:00
parent f162d23ce3
commit aab5b5bfd5
12 changed files with 227 additions and 38 deletions

View File

@@ -82,6 +82,7 @@ export function Dump() {
removeVote,
lastDumpEvent,
lastCommentEvent,
connectionEpoch,
} = useWS();
useEffect(() => {
@@ -157,7 +158,9 @@ export function Dump() {
})
.catch(() => {});
return () => controller.abort();
}, [selectedDump, token]);
// connectionEpoch: re-fetch on reconnect to backfill comments missed while
// the socket was down.
}, [selectedDump, token, connectionEpoch]);
// Fetch related dumps (backlinks) when dump loads
useEffect(() => {