Skip to content

Commit

Permalink
Fix conversation loading on mount.
Browse files Browse the repository at this point in the history
  • Loading branch information
bLopata committed Dec 16, 2024
1 parent 29a0cb8 commit 93c13d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions www/app/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ export default function Chat({
};

const conversationsFetcher = async () => {
return getConversations();
const result = await getConversations();
return result;
};

const conversationsKey = useMemo(() => userId, [userId]);
Expand Down Expand Up @@ -183,7 +184,7 @@ const { data: conversations, mutate: mutateConversations } = useSWR(
revalidateOnFocus: false,
dedupingInterval: 60000,
revalidateIfStale: false,
revalidateOnMount: false,
revalidateOnMount: true
}
);

Expand Down

0 comments on commit 93c13d2

Please sign in to comment.