adjust artist page suspense fetching

This commit is contained in:
jeffvli
2025-12-28 06:36:14 -08:00
parent f9c3c107bd
commit 4006980b29
3 changed files with 27 additions and 18 deletions
@@ -1,4 +1,4 @@
import { useQuery, useQueryClient, useSuspenseQuery } from '@tanstack/react-query';
import { useQueryClient, useSuspenseQuery } from '@tanstack/react-query';
import { LayoutGroup, motion } from 'motion/react';
import { useCallback, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -226,7 +226,7 @@ const AlbumArtistMetadataTopSongs = ({
const player = usePlayer();
const serverId = useCurrentServerId();
const topSongsQuery = useQuery(
const topSongsQuery = useSuspenseQuery(
artistsQueries.topSongs({
query: { artist: detailQuery.data?.name || '', artistId: routeId },
serverId: serverId,