Skip to content

Commit

Permalink
fix loading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-deriv committed Dec 6, 2024
1 parent be0dc3e commit 62e7702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/Apiexplorer/SubscribeRenderer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ function SubscribeRenderer<T extends TSocketSubscribableEndpointNames>({
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<T> extends never ? undefined : TSocketRequestProps<T>;
Expand Down

0 comments on commit 62e7702

Please sign in to comment.