Skip to content

An AI-powered search engine with a generative UI

Update react warnings fix as per https://github.com/miurla/morphic/pull/543

Robert Douglassde97f2dccf13
diff --git a/components/chat.tsx b/components/chat.tsx
index 4ab2f821..6c1d0c0b 100644
--- a/components/chat.tsx
+++ b/components/chat.tsx
@@ -114,7 +114,7 @@ export function Chat({
handleScroll() // Set initial state
return () => container.removeEventListener('scroll', handleScroll)
- }, [scrollContainerRef.current])
+ }, [])
// Scroll to the section when a new user message is sent
useEffect(() => {
@@ -133,6 +133,7 @@ export function Chat({
useEffect(() => {
setMessages(savedMessages)
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [id])
const onQuerySelect = (query: string) => {