Skip to content

Commit e6a08f6

Browse files
committed
shorten handler debounce period
1 parent 0dc7bac commit e6a08f6

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)