Skip to content

Commit e0af9ec

Browse files
committed
Lower the interval value by 50ms, and fix isLoading for the collaboration provider of TipTap
1 parent 935b947 commit e0af9ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/ui/coaching-sessions/coaching-notes.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ const useCollaborationProvider = (doc: Y.Doc) => {
8484
}, [jwt, providerRef.current]);
8585

8686
return {
87-
isLoading: isLoading || isSyncing,
87+
// isSyncing indicates whether a first handshake with the server has been established
88+
// which is exactly the right thing to indicate if this hook isLoading or not.
89+
isLoading: isSyncing,
8890
isError,
8991
extensions,
9092
};
@@ -107,7 +109,7 @@ const CoachingNotes = () => {
107109
}
108110
return prev + Math.random() * 15;
109111
});
110-
}, 200);
112+
}, 150);
111113

112114
return () => clearInterval(interval);
113115
} else {

0 commit comments

Comments
 (0)