add getPodcasts query atom

This commit is contained in:
thierryverse 2025-11-19 08:29:33 +02:00
parent eca4580f76
commit d2fddd5ea5
14 changed files with 77 additions and 14 deletions

View file

@ -1,4 +1,5 @@
import type { GetChatsRequest } from "@/contracts/types/chat.types";
import type { GetPodcastsRequest } from "@/contracts/types/podcast.types";
export const cacheKeys = {
chats: {
@ -6,7 +7,10 @@ export const cacheKeys = {
globalQueryParams: (queries: GetChatsRequest["queryParams"]) =>
["chats", ...(queries ? Object.values(queries) : [])] as const,
},
podcasts: () => ["podcasts"] as const,
podcasts: {
globalQueryParams: (queries: GetPodcastsRequest["queryParams"]) =>
["podcasts", ...(queries ? Object.values(queries) : [])] as const,
},
auth: {
user: ["auth", "user"] as const,
},