Skip to content

Commit

Permalink
shorten handler debounce period
Browse files Browse the repository at this point in the history
  • Loading branch information
tyouwei committed Nov 13, 2024
1 parent 0dc7bac commit e6a08f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const CollaborationEditor = ({ matchId }: CollaborationEditorProps) => {
prevClientsRef.current = newClients;
setConnectedClients(newClients);
}
}, 5000); // Debounce for 1 second
}, 1000);
};

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

0 comments on commit e6a08f6

Please sign in to comment.