MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / useListConversationsQuery

Function useListConversationsQuery

webapp/_webapp/src/query/index.ts:87–99  ·  view source on GitHub ↗
(
  projectId: string,
  opts?: UseQueryOptionsOverride<ListConversationsResponse>,
)

Source from the content-addressed store, hash-verified

85};
86
87export const useListConversationsQuery = (
88 projectId: string,
89 opts?: UseQueryOptionsOverride<ListConversationsResponse>,
90) => {
91 // Only fetch if logged in
92 const { user } = useAuthStore();
93 return useQuery({
94 queryKey: queryKeys.conversations.listConversations(projectId).queryKey,
95 queryFn: () => listConversations({ projectId }),
96 enabled: !!user,
97 ...opts,
98 });
99};
100
101export const useDeleteConversationMutation = (opts?: UseMutationOptionsOverride<DeleteConversationResponse>) => {
102 return useMutation({

Callers 2

ChatHistoryModalFunction · 0.90
useSendMessageStreamFunction · 0.90

Calls 1

listConversationsFunction · 0.90

Tested by

no test coverage detected