feat: updates

This commit is contained in:
qier222 2022-03-19 17:03:29 +08:00
parent 08abf8229f
commit fb21405bf9
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
33 changed files with 699 additions and 361 deletions

View file

@ -7,9 +7,16 @@ export default function Home() {
const {
data: recommendedPlaylists,
isLoading: isLoadingRecommendedPlaylists,
} = useQuery(PlaylistApiNames.FETCH_RECOMMENDED_PLAYLISTS, () => {
return fetchRecommendedPlaylists({})
})
} = useQuery(
PlaylistApiNames.FETCH_RECOMMENDED_PLAYLISTS,
() => {
return fetchRecommendedPlaylists({})
},
{
placeholderData: () =>
window.ipcRenderer.sendSync('getApiCacheSync', { api: 'personalized' }),
}
)
return (
<div>