From 62e77025a3efee70b3258263a7db98d84a0bfd4d Mon Sep 17 00:00:00 2001 From: muhammad-ahmed Date: Fri, 6 Dec 2024 14:20:46 +0800 Subject: [PATCH] fix loading issue --- src/features/Apiexplorer/SubscribeRenderer/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/Apiexplorer/SubscribeRenderer/index.tsx b/src/features/Apiexplorer/SubscribeRenderer/index.tsx index dd774faa..036999c5 100644 --- a/src/features/Apiexplorer/SubscribeRenderer/index.tsx +++ b/src/features/Apiexplorer/SubscribeRenderer/index.tsx @@ -48,11 +48,11 @@ function SubscribeRenderer({ return () => { if (is_subscribed) unsubscribe(); }; - }, [is_subscribed, unsubscribe]); + }, [is_subscribed]); useEffect(() => { if (is_switching_account) unsubscribe(); - }, [is_switching_account, unsubscribe]); + }, [is_switching_account]); const parseRequestJSON = useCallback(() => { let request_data: TSocketRequestProps extends never ? undefined : TSocketRequestProps;