Refresh application data after an event-stream reconnect #67

Open
opened 2026-11-05 12:09:30 +00:00 by spencerm · 0 comments
Owner

Priority: medium.

frontend/src/auth/useEvents.ts:99 invokes streamReconnected() only for build-version checking. It does not invalidate board/packet/ITP data. The server does not replay events missed during a disconnect.

Reproduce: keep a board or packet open, interrupt its event connection, change the relevant assignment/status from another client, then reconnect with the same server build and no further events. Existing data remains stale until a relevant new event or manual refresh.

Acceptance criteria:

  • Trigger application-data refresh on reconnection, including views with packet/unit event filters.
  • Reconcile session state as appropriate.
  • Preserve unsaved edits and avoid duplicate subscriptions or request storms.
  • Add tests with a missed change during disconnection and an unchanged build version.

Validation: static event/invalidation-path review. Source: parent review.

Reviewed revision: 18333600b55b70971877c1a0c72d1d61b6ce9c69. Raised from the November 2026 independent project reviews and parent verification. No production system was tested.

Priority: medium. [frontend/src/auth/useEvents.ts:99](https://gt.pescoinc.biz/spencerm/PacketStation/src/commit/18333600b55b70971877c1a0c72d1d61b6ce9c69/frontend/src/auth/useEvents.ts#L99) invokes streamReconnected() only for build-version checking. It does not invalidate board/packet/ITP data. The server does not replay events missed during a disconnect. Reproduce: keep a board or packet open, interrupt its event connection, change the relevant assignment/status from another client, then reconnect with the same server build and no further events. Existing data remains stale until a relevant new event or manual refresh. Acceptance criteria: - Trigger application-data refresh on reconnection, including views with packet/unit event filters. - Reconcile session state as appropriate. - Preserve unsaved edits and avoid duplicate subscriptions or request storms. - Add tests with a missed change during disconnection and an unchanged build version. Validation: static event/invalidation-path review. Source: parent review. Reviewed revision: `18333600b55b70971877c1a0c72d1d61b6ce9c69`. Raised from the November 2026 independent project reviews and parent verification. No production system was tested.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: spencerm/PacketStation#67