docker setup

This commit is contained in:
2025-12-26 18:59:50 +01:00
parent 64377de548
commit 904feb41b8
11 changed files with 198 additions and 30 deletions

View File

@@ -378,13 +378,10 @@ export default function LeaguesPage() {
const [activeCategory, setActiveCategory] = useState<CategoryId>('all');
const [showFilters, setShowFilters] = useState(false);
useEffect(() => {
void loadLeagues();
}, []);
const { leagueService } = useServices();
const loadLeagues = async () => {
const loadLeagues = useCallback(async () => {
try {
const { leagueService } = useServices();
const leagues = await leagueService.getAllLeagues();
setRealLeagues(leagues);
} catch (error) {
@@ -392,7 +389,11 @@ export default function LeaguesPage() {
} finally {
setLoading(false);
}
};
}, [leagueService]);
useEffect(() => {
void loadLeagues();
}, [loadLeagues]);
const leagues = realLeagues;