optimizations to home screen fetching

fix text wrapping in settings
This commit is contained in:
Violet Caulfield
2025-11-01 07:59:28 -05:00
parent 14f424d829
commit 31c72221df
3 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -1,4 +1,4 @@
import { useQuery } from '@tanstack/react-query'
import { useMutation } from '@tanstack/react-query'
import { useFrequentlyPlayedArtists, useFrequentlyPlayedTracks } from '../frequents'
import { useRecentArtists, useRecentlyPlayedTracks } from '../recents'
@@ -11,9 +11,8 @@ const useHomeQueries = () => {
const { refetch: refetchFrequentlyPlayed } = useFrequentlyPlayedTracks()
return useQuery({
queryKey: ['Home'],
queryFn: async () => {
return useMutation({
mutationFn: async () => {
await Promise.all([refetchRecentlyPlayed(), refetchFrequentlyPlayed()])
await Promise.all([refetchFrequentArtists(), refetchRecentArtists()])
return true
+1 -1
View File
@@ -15,7 +15,7 @@ export function Home(): React.JSX.Element {
usePerformanceMonitor(COMPONENT_NAME, 5)
const { data, isFetching: refreshing, refetch: refresh } = useHomeQueries()
const { isPending: refreshing, mutate: refresh } = useHomeQueries()
return (
<ScrollView
@@ -35,7 +35,7 @@ export default function PlaybackTab(): React.JSX.Element {
<RadioGroupItemWithLabel
size='$3'
value={StreamingQuality.Original}
label='Original Quality (Highest bandwidth)'
label='Original Quality'
/>
<RadioGroupItemWithLabel
size='$3'