better query key factories

This commit is contained in:
yohlo
2025-08-22 11:55:25 -05:00
parent 5f5d9582f2
commit 2781801eef
3 changed files with 4 additions and 4 deletions

View File

@@ -2,8 +2,8 @@ import { queryOptions, useQuery } from "@tanstack/react-query";
import { getTournament, listTournaments } from "./server";
const tournamentKeys = {
list: ['tournaments'] as const,
details: (id: string) => [...tournamentKeys.list, id] as const,
list: ['tournaments', 'list'] as const,
details: (id: string) => ['tournaments', 'details', id] as const,
};
export const tournamentQueries = {