From 08aecfa53e930b5d6851fa85963e7a31c155d08f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 16 Aug 2023 16:46:19 +0200 Subject: [PATCH] Remove unused imports --- todoblue/src/app/(api)/useWs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/todoblue/src/app/(api)/useWs.ts b/todoblue/src/app/(api)/useWs.ts index d86193f..9b80b82 100644 --- a/todoblue/src/app/(api)/useWs.ts +++ b/todoblue/src/app/(api)/useWs.ts @@ -1,6 +1,6 @@ 'use client'; -import {useState, useCallback, useEffect, useReducer, Reducer} from "react" +import {useCallback, useEffect, useReducer, Reducer} from "react" export interface WebSocketHandlerParams { event: E, @@ -52,7 +52,7 @@ function wsReducer(prevState: WebSocketState, action: WebSocketAction) { } export function useWs(url: string | undefined, {onclose, onerror, onmessage, onopen}: WebSocketHandlers) { - const [{webSocket, webSocketState, webSocketBackoffMs, nextBackOffMs}, dispatch] = useReducer>(wsReducer, {webSocket: undefined, webSocketState: undefined, webSocketBackoffMs: undefined, nextBackOffMs: 1000}) + const [{webSocket, webSocketState, webSocketBackoffMs}, dispatch] = useReducer>(wsReducer, {webSocket: undefined, webSocketState: undefined, webSocketBackoffMs: undefined, nextBackOffMs: 1000}) const closeWebSocket = useCallback(() => { console.debug("[useWebSocket] Closing WebSocket:", webSocket);