Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/web/components/memory-graph/hooks/use-graph-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function useGraphApi(options: UseGraphApiOptions = {}) {
hasNextPage,
fetchNextPage,
} = useInfiniteQuery<ApiDocumentsResponse, Error>({
queryKey: ["graph-documents", containerTags?.join(",")],
queryKey: ["documents-with-memories", containerTags, []],
initialPageParam: 1,
queryFn: async ({ pageParam }) => {
const response = await $fetch("@post/documents/documents", {
Expand All @@ -131,7 +131,7 @@ export function useGraphApi(options: UseGraphApiOptions = {}) {
}
return undefined
},
staleTime: 30 * 1000,
staleTime: 5 * 60 * 1000,
enabled,
})

Expand Down
Loading