From d3f8624a7c86a43c9aa21c91c2875640b2820707 Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Tue, 4 Mar 2025 15:50:56 +0100 Subject: [PATCH] Add handler when clicking on submit --- src/components/thread/index.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/thread/index.tsx b/src/components/thread/index.tsx index 0e56068..e6d84a3 100644 --- a/src/components/thread/index.tsx +++ b/src/components/thread/index.tsx @@ -58,6 +58,8 @@ function StickyToBottomContent(props: { } export function Thread() { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const [_, setThreadId] = useQueryParam("threadId", StringParam); const [input, setInput] = useState(""); const [firstTokenReceived, setFirstTokenReceived] = useState(false); const stream = useStreamContext(); @@ -136,10 +138,13 @@ export function Thread() { > {chatStarted && (
-
+
+ LangGraph Chat +