mirror of
				https://github.com/ItzCrazyKns/Perplexica.git
				synced 2025-11-04 04:38:15 +00:00 
			
		
		
		
	feat(chatwindow): fix infinite loading
This commit is contained in:
		@@ -201,13 +201,6 @@ const useSocket = (
 | 
			
		||||
 | 
			
		||||
      connectWs();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return () => {
 | 
			
		||||
      if (ws?.readyState === 1) {
 | 
			
		||||
        ws?.close();
 | 
			
		||||
        console.log('[DEBUG] closed');
 | 
			
		||||
      }
 | 
			
		||||
    };
 | 
			
		||||
  }, [ws, url, setIsWSReady, setError]);
 | 
			
		||||
 | 
			
		||||
  return ws;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user