mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-22 03:49:18 +02:00
1. Runtime tracking - Removed the 60s upper bound so restarts don't break hour counting
2. Chamber stream check - Added _active_chamber_streams check for A1/P1 printers (proactive) 3. Browser freeze - Removed immediate printerStatus invalidation on print_complete
This commit is contained in:
@@ -196,10 +196,8 @@ export function useWebSocket() {
|
||||
break;
|
||||
|
||||
case 'print_complete':
|
||||
// Refetch printer status when print completes to clear printable_objects_count
|
||||
if (message.printer_id !== undefined) {
|
||||
queryClient.invalidateQueries({ queryKey: ['printerStatus', message.printer_id] });
|
||||
}
|
||||
// Don't invalidate printerStatus here - it causes re-render cascade and browser freeze
|
||||
// The printer_status websocket messages will naturally update the status
|
||||
debouncedInvalidate('archives');
|
||||
debouncedInvalidate('archiveStats');
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user