mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2026-01-03 13:44:23 +01:00
fix: fix bug conversation log syncronization
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user