mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 11:08:12 +00:00
enhance train scheduling and booking management
This commit is contained in:
@@ -130,6 +130,13 @@ export function useBookingWindowSocket(enabled: boolean = true) {
|
||||
},
|
||||
);
|
||||
|
||||
// Refresh the batch-board DETAIL for the schedule that transitioned so the
|
||||
// Priority Tracking tab reranks + updates its countdowns immediately (the
|
||||
// detail is a different shape from the list — invalidate, don't patch).
|
||||
void qc.invalidateQueries({
|
||||
queryKey: QUERY_KEYS.TRAIN_SCHEDULING.batchBoardDetail(event.scheduleId),
|
||||
});
|
||||
|
||||
// Always refresh the batch board (different shape, not patched). When the
|
||||
// schedule wasn't in any window list either, refresh those too so a newly
|
||||
// announced window surfaces. Both debounced — no per-push stampede.
|
||||
|
||||
Reference in New Issue
Block a user