mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-23 19:39:35 -05:00
should i be doing it this way?
This commit is contained in:
@@ -4,6 +4,6 @@ import { QueryKeys } from "../../enums/query-keys";
|
||||
import { fetchRecentlyPlayed } from "./functions/recents";
|
||||
|
||||
export const useRecentlyPlayed = (api: Api) => useQuery({
|
||||
queryKey: [QueryKeys.RecentlyPlayed],
|
||||
queryFn: () => fetchRecentlyPlayed(api)
|
||||
queryKey: [QueryKeys.RecentlyPlayed, api],
|
||||
queryFn: ({ queryKey }) => fetchRecentlyPlayed(queryKey[1] as Api)
|
||||
})
|
||||
Reference in New Issue
Block a user