Skip to content

Commit cf52ad9

Browse files
committed
fix handler debounce period
1 parent e6a08f6 commit cf52ad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

peerprep-fe/src/app/collaboration/components/CollaborationEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const CollaborationEditor = ({ matchId }: CollaborationEditorProps) => {
127127
prevClientsRef.current = newClients;
128128
setConnectedClients(newClients);
129129
}
130-
}, 1000);
130+
}, 5000);
131131
};
132132

133133
const handleEditorMount = (editor: MonacoEditor.IStandaloneCodeEditor) => {
@@ -181,7 +181,7 @@ const CollaborationEditor = ({ matchId }: CollaborationEditorProps) => {
181181
if (providerRef.current?.wsconnected) {
182182
updateLocalAwareness();
183183
}
184-
}, 5000);
184+
}, 3000);
185185

186186
return () => {
187187
clearInterval(refreshInterval);

0 commit comments

Comments
 (0)