1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-11-22 16:24:19 +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); const openWebSocketAfterBackoff = backOff(openWebSocket);
// noinspection JSIgnoredPromiseFromCall // noinspection JSIgnoredPromiseFromCall
openWebSocketAfterBackoff() openWebSocketAfterBackoff()
}, [url, isBackingOff, webSocketState]) }, [url, webSocket, isBackingOff, webSocketState])
return {webSocket, webSocketState, webSocketBackoffMs} return {webSocket, webSocketState, webSocketBackoffMs}
} }