mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-27 05:38:51 +01:00
🔧 fix: Reduce debounce time for rapid text input in useAutoSave hook from 65ms to 25ms for improved responsiveness
This commit is contained in:
parent
0ae3b87b65
commit
5740ca59d8
1 changed files with 2 additions and 2 deletions
|
|
@ -105,10 +105,10 @@ export const useAutoSave = ({
|
|||
return;
|
||||
}
|
||||
|
||||
/** Use shorter debounce for saving text (65ms) to capture rapid typing */
|
||||
/** Use shorter debounce for saving text (25ms) to capture rapid typing */
|
||||
const handleInputFast = debounce(
|
||||
(value: string) => setDraft({ id: conversationId, value }),
|
||||
65,
|
||||
25,
|
||||
);
|
||||
|
||||
/** Use longer debounce for clearing empty values (850ms) to prevent accidental draft loss */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue