We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c74144d commit 5082fcbCopy full SHA for 5082fcb
apps/web/src/components/ChatView.tsx
@@ -1969,6 +1969,12 @@ export default function ChatView(props: ChatViewProps) {
1969
planSidebarDismissedForTurnRef.current = null;
1970
}, [activeThread?.id]);
1971
1972
+ // Cancel any pending debouncer timeout on unmount to avoid stale state updates.
1973
+ useEffect(() => {
1974
+ const debouncer = showScrollDebouncer.current;
1975
+ return () => debouncer.cancel();
1976
+ }, []);
1977
+
1978
useEffect(() => {
1979
setIsRevertingCheckpoint(false);
1980
0 commit comments