diff --git a/components/Result/Result.tsx b/components/Result/Result.tsx index ffbfa61..04293fa 100644 --- a/components/Result/Result.tsx +++ b/components/Result/Result.tsx @@ -169,7 +169,7 @@ const Result = ({ artistQuery }: Props) => {
-
+
No setlists found for {artistQuery[0]}
diff --git a/services/artistData.ts b/services/artistData.ts index bd37fdd..d75d337 100644 --- a/services/artistData.ts +++ b/services/artistData.ts @@ -6,7 +6,11 @@ export const useArtistData = (artist: string | undefined) => { const { data, error, isLoading } = useSWR( artist ? `/api/artists/${artist}/spotify` : null, fetcher, - { revalidateOnFocus: false, revalidateOnReconnect: false }, + { + revalidateOnFocus: false, + shouldRetryOnError: false, + revalidateOnReconnect: false, + }, ); return { diff --git a/services/events.ts b/services/events.ts index 3098e40..fca30ac 100644 --- a/services/events.ts +++ b/services/events.ts @@ -6,7 +6,11 @@ export const useEvents = (artist: string) => { const { data, error, isLoading } = useSWR( `/api/artists/${artist}/concerts`, fetcher, - { revalidateOnFocus: false, revalidateOnReconnect: false }, + { + revalidateOnFocus: false, + shouldRetryOnError: false, + revalidateOnReconnect: false, + }, ); return { diff --git a/services/searchArtist.ts b/services/searchArtist.ts index 9fd7187..f3e0ab4 100644 --- a/services/searchArtist.ts +++ b/services/searchArtist.ts @@ -15,6 +15,7 @@ export const useSearchArtistByName = (searchTerm: string | undefined) => { { dedupingInterval: 300, revalidateOnFocus: false, + shouldRetryOnError: false, revalidateOnReconnect: false, }, ); @@ -32,6 +33,7 @@ export const useGetArtist = (mbid: string | undefined) => { fetcher, { revalidateOnFocus: false, + shouldRetryOnError: false, revalidateOnReconnect: false, }, ); diff --git a/services/tracks.ts b/services/tracks.ts index 88b3e8f..4fe98a7 100644 --- a/services/tracks.ts +++ b/services/tracks.ts @@ -10,7 +10,11 @@ export const useTracks = (artistName?: string, artistId?: string) => { ? `/api/tracks?artistName=${artistName}` : null, fetcher, - { revalidateOnFocus: false, revalidateOnReconnect: false }, + { + revalidateOnFocus: false, + shouldRetryOnError: false, + revalidateOnReconnect: false, + }, ); return {