From 98261cea79623c7881ddd819351278a0f4718b02 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 16 Aug 2023 15:52:09 +0200 Subject: [PATCH] Add missing dep to useWs --- todoblue/src/app/(api)/useWs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todoblue/src/app/(api)/useWs.ts b/todoblue/src/app/(api)/useWs.ts index fc7dc06..5f2132c 100644 --- a/todoblue/src/app/(api)/useWs.ts +++ b/todoblue/src/app/(api)/useWs.ts @@ -87,7 +87,7 @@ export function useWs(url: string | undefined, {onclose, onerror, onmessage, ono const openWebSocketAfterBackoff = backOff(openWebSocket); // noinspection JSIgnoredPromiseFromCall openWebSocketAfterBackoff() - }, [url, isBackingOff, webSocketState]) + }, [url, webSocket, isBackingOff, webSocketState]) return {webSocket, webSocketState, webSocketBackoffMs} }