Skip to content

Commit 4988166

Browse files
authored
Merge pull request #191 from CS3219-AY2425S1/fix/cleanup_features
shorten handler debounce period
2 parents d400d2a + e6a08f6 commit 4988166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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-
}, 5000); // Debounce for 1 second
130+
}, 1000);
131131
};
132132

133133
const handleEditorMount = (editor: MonacoEditor.IStandaloneCodeEditor) => {

0 commit comments

Comments
 (0)