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:
parent
ac7946ddc2
commit
98261cea79
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue