Skip to content

Commit

Permalink
fix: PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelchris committed Dec 30, 2024
1 parent 3bc1b0a commit 43b96c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/shared/src/hooks/useFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ export default function useFeed<T>(
const { showPlusSubscription, isPlus } = usePlusSubscription();
const queryClient = useQueryClient();
const isFeedPreview = feedQueryKey?.[0] === RequestKey.FeedPreview;
const shouldRetry =
const avoidRetry =
params?.settings?.feedName === SharedFeedPage.Custom &&
showPlusSubscription;
showPlusSubscription &&
!isPlus;

const feedQuery = useInfiniteQuery<FeedData>({
queryKey: feedQueryKey,
Expand Down Expand Up @@ -159,7 +160,7 @@ export default function useFeed<T>(
enabled: query && tokenRefreshed,
refetchOnReconnect: false,
refetchOnWindowFocus: false,
retry: shouldRetry ? false : 3,
retry: avoidRetry ? false : 3,
initialPageParam: '',
getNextPageParam: ({ page }) => getNextPageParam(page?.pageInfo),
});
Expand Down

0 comments on commit 43b96c4

Please sign in to comment.