Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit d2f11e6

Browse files
authored
Merge pull request #191 from utkarsha-deriv/utkarsha/subscribe-call-response-fix
2 parents 3ef9864 + 328f198 commit d2f11e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hooks/useSubscription/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const useSubscription = <T extends TSocketSubscribableEndpointNames>(name: T) =>
3232
const onError = useCallback((response: TSocketResponse<T>) => {
3333
setError(response.error);
3434
setIsLoading(false);
35+
setFullResponse(null);
3536
}, []);
3637

3738
const subscribe = useCallback(

0 commit comments

Comments
 (0)