plg4-dev-server / frontend /hooks /useChatQueries.ts
Jesse Johnson
New commit for backend deployment: 2025-09-25_13-24-03
c59d808
raw
history blame contribute delete
411 Bytes
import { chatService } from "@/services/chat-service";
import { useQuery } from "@tanstack/react-query";
export const chatKeys = {
all: ["chat"] as const,
};
// TODO: DELETE and replace with actual hook implementation
export function useChatMessage() {
return useQuery({
queryKey: chatKeys.all,
queryFn: chatService.getMessage,
staleTime: 5 * 60 * 1000, // 5 minutes
retry: false,
});
}