We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 935b947 commit e0af9ecCopy full SHA for e0af9ec
src/components/ui/coaching-sessions/coaching-notes.tsx
@@ -84,7 +84,9 @@ const useCollaborationProvider = (doc: Y.Doc) => {
84
}, [jwt, providerRef.current]);
85
86
return {
87
- isLoading: isLoading || isSyncing,
+ // 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,
90
isError,
91
extensions,
92
};
@@ -107,7 +109,7 @@ const CoachingNotes = () => {
107
109
}
108
110
return prev + Math.random() * 15;
111
});
- }, 200);
112
+ }, 150);
113
114
return () => clearInterval(interval);
115
} else {
0 commit comments