fix: fix bug conversation log syncronization

This commit is contained in:
d-kimsuon
2025-10-15 12:59:05 +09:00
parent f34943c9cc
commit 7c05168e4e
12 changed files with 109 additions and 21 deletions

View File

@@ -3,9 +3,10 @@ import { projectDetailQuery } from "../../../../lib/api/queries";
export const useProject = (projectId: string) => {
return useSuspenseInfiniteQuery({
queryKey: ["projects", projectId],
queryKey: projectDetailQuery(projectId).queryKey,
queryFn: async ({ pageParam }) => {
return await projectDetailQuery(projectId, pageParam).queryFn();
const result = await projectDetailQuery(projectId, pageParam).queryFn();
return result;
},
initialPageParam: undefined as string | undefined,
getNextPageParam: (lastPage) => lastPage.nextCursor,