1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-11-22 08:14:18 +00:00

Add missing dep to useWs

This commit is contained in:
Steffo 2023-08-16 15:52:09 +02:00
parent ac7946ddc2
commit 98261cea79
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -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}
}