react-query

This commit is contained in:
2025-12-21 01:45:17 +01:00
parent 22f28728ce
commit 13d8563feb
13 changed files with 324 additions and 296 deletions

View File

@@ -0,0 +1,11 @@
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
import { useServices } from '@/lib/services/ServiceProvider';
export function useAllTeams() {
const { teamService } = useServices();
return useQuery({
queryKey: ['allTeams'],
queryFn: () => teamService.getAllTeams(),
});
}