From 5740ca59d83e14b87b01f8973a28cabf578fc396 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Fri, 19 Dec 2025 12:14:53 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix:=20Reduce=20debounce=20time?= =?UTF-8?q?=20for=20rapid=20text=20input=20in=20useAutoSave=20hook=20from?= =?UTF-8?q?=2065ms=20to=2025ms=20for=20improved=20responsiveness?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/hooks/Input/useAutoSave.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/hooks/Input/useAutoSave.ts b/client/src/hooks/Input/useAutoSave.ts index c8c6fa8336..95cd0d1933 100644 --- a/client/src/hooks/Input/useAutoSave.ts +++ b/client/src/hooks/Input/useAutoSave.ts @@ -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 */