mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
11 lines
391 B
TypeScript
11 lines
391 B
TypeScript
import type { FetchUserArtistsResponse } from '@/api/user'
|
|
import { UserApiNames, fetchUserArtists } from '@/api/user'
|
|
|
|
export default function useUserArtists() {
|
|
return useQuery([UserApiNames.FETCH_USER_ARTIST], fetchUserArtists, {
|
|
placeholderData: (): FetchUserArtistsResponse =>
|
|
window.ipcRenderer?.sendSync('getApiCacheSync', {
|
|
api: 'album/sublist',
|
|
}),
|
|
})
|
|
}
|