Implement useSession hub wiring, Zod validation, version guard #43

Closed
opened 2026-07-05 19:21:02 +01:00 by TimCane · 0 comments
TimCane commented 2026-07-05 19:21:02 +01:00 (Migrated from github.com)

Goal

Seed via REST GET, live via SignalR SnapshotUpdated/SessionFinalized into queryClient.setQueryData behind the version guard; withAutomaticReconnect; expose connected|reconnecting|disconnected; parse every inbound payload with the shared Zod schemas via hand-written contract.ts wrappers.

References

Done when

  • Advances M5 A1/A4/A5.

Part of M5: Realtime claims.

## Goal Seed via REST GET, live via SignalR SnapshotUpdated/SessionFinalized into queryClient.setQueryData behind the version guard; withAutomaticReconnect; expose connected|reconnecting|disconnected; parse every inbound payload with the shared Zod schemas via hand-written contract.ts wrappers. ## References - [docs/08-frontend-design.md#server-state](https://github.com/TimCane/bill-splitter/blob/main/docs/08-frontend-design.md#server-state) - [docs/08-frontend-design.md#validation](https://github.com/TimCane/bill-splitter/blob/main/docs/08-frontend-design.md#validation) - [docs/05-realtime-contract.md#ordering-and-idempotency](https://github.com/TimCane/bill-splitter/blob/main/docs/05-realtime-contract.md#ordering-and-idempotency) - [docs/05-realtime-contract.md#typing-on-the-frontend](https://github.com/TimCane/bill-splitter/blob/main/docs/05-realtime-contract.md#typing-on-the-frontend) ## Done when - Advances M5 A1/A4/A5. --- Part of **M5: Realtime claims**.
Sign in to join this conversation.
No description provided.