Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix: webSocket retry counter not reset on project change

tiran133a850f5b37093
diff --git a/apps/web/src/hooks/use-project-websocket.ts b/apps/web/src/hooks/use-project-websocket.ts
index fc1d26763..10c6290ef 100644
--- a/apps/web/src/hooks/use-project-websocket.ts
+++ b/apps/web/src/hooks/use-project-websocket.ts
@@ -24,6 +24,8 @@ export function useProjectWebSocket(projectId: string) {
useEffect(() => {
if (!projectId || !session?.user?.id) return;
+ retriesRef.current = 0;
+
function connect() {
const url = getWsUrl(projectId);
const ws = new WebSocket(url);