feat: 使用sqlite3替换realm

This commit is contained in:
qier222 2022-03-30 00:53:05 +08:00
parent c4219afd3d
commit 1b86cbbee1
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
20 changed files with 292 additions and 691 deletions

View file

@ -17,8 +17,10 @@ export default function Home() {
return fetchRecommendedPlaylists({})
},
{
// placeholderData: () =>
// window.ipcRenderer.sendSync('getApiCacheSync', { api: 'personalized' }),
placeholderData: () =>
window.ipcRenderer?.sendSync('getApiCacheSync', {
api: 'personalized',
}),
}
)
@ -27,7 +29,13 @@ export default function Home() {
isLoading: isLoadingDailyRecommendPlaylists,
} = useQuery(
PlaylistApiNames.FETCH_DAILY_RECOMMEND_PLAYLISTS,
fetchDailyRecommendPlaylists
fetchDailyRecommendPlaylists,
{
placeholderData: () =>
window.ipcRenderer?.sendSync('getApiCacheSync', {
api: 'recommend/resource',
}),
}
)
const playlists = [