From 28093e45b8b54d032745c9e6eac766d9a9bbd803 Mon Sep 17 00:00:00 2001 From: Blucas <15555602203@163.com> Date: Mon, 8 Jan 2024 13:20:14 +0800 Subject: [PATCH] fix socket init --- src/pages/Devtools/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/Devtools/index.tsx b/src/pages/Devtools/index.tsx index 48999b24..706ec95e 100644 --- a/src/pages/Devtools/index.tsx +++ b/src/pages/Devtools/index.tsx @@ -291,10 +291,9 @@ export default function Devtools() { state.socket, state.initSocket, ]); - const storageTypes = useStorageTypes(); useEffect(() => { - if (!socket) return; + if (socket) return; initSocket(address); }, [address, initSocket, socket]);