mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-22 03:49:18 +02:00
Fix browser tab crash on print completion (debounced invalidations)
When a print completes, multiple WebSocket messages are sent rapidly (print_complete, archive_updated, etc.). Each was immediately invalidating the archives query, causing a cascade of rapid re-renders that crashed the browser tab. Added debounced query invalidation to useWebSocket.ts: - Multiple invalidation requests within 100ms are coalesced into one - Uses requestAnimationFrame to avoid blocking the main thread - Properly cleans up timeouts on unmount
This commit is contained in:
Binary file not shown.
File diff suppressed because one or more lines are too long
+1
-1
@@ -23,7 +23,7 @@
|
||||
|
||||
<!-- Splash screens for iOS -->
|
||||
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
|
||||
<script type="module" crossorigin src="/assets/index-CFaicAOR.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-AT42oZVR.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CbCN6LSA.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user