An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
fix: Remove sections from useEffect dependency array
Yoshiki Miurae5f3c51a2955
diff --git a/components/chat-messages.tsx b/components/chat-messages.tsxindex 0330a91f..cfd69e69 100644--- a/components/chat-messages.tsx+++ b/components/chat-messages.tsx@@ -61,7 +61,7 @@ export function ChatMessages({// Clear cache for all messages during streamingtoolCountCacheRef.current.clear()}- }, [isLoading, sections])+ }, [isLoading])if (!sections.length) return null