Clear raw packet ref on reconnect

This commit is contained in:
Jack Kingsman
2026-02-27 17:45:17 -08:00
parent 57e6ba534a
commit dcd473de6c

View File

@@ -229,6 +229,9 @@ export function App() {
});
},
onReconnect: () => {
// Clear raw packets: observation_id is a process-local counter that resets
// on backend restart, so stale packets would cause new ones to be deduped away.
setRawPackets([]);
// Silently recover any data missed during the disconnect window
triggerReconcile();
refreshUnreads();