Fix disapearing chat sessions

This commit is contained in:
Weves 2024-03-04 20:56:20 -08:00 committed by Chris Weaver
parent 7869f23e12
commit 40c420f845

View File

@ -69,6 +69,12 @@ export const ChatSidebar = ({
const currentChatId = currentChatSession?.id;
// prevent the NextJS Router cache from causing the chat sidebar to not
// update / show an outdated list of chats
useEffect(() => {
router.refresh();
}, [currentChatId]);
return (
<div
className={`