From 47d99a6e2e92bb9aae2677bf3a30f4547142225d Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Mon, 11 May 2026 17:45:15 -0700 Subject: [PATCH] fix: stop For You feed skeletons when query is disabled When currentUserId is null or options.enabled is false, the underlying useInfiniteQuery stays in isPending: true with no data, which causes TrackLineup to render skeletons indefinitely. Override the pending/loading flags from the hook so consumers fall through to the empty state. Co-Authored-By: Claude Opus 4.7 (1M context) --- packages/common/src/api/tan-query/lineups/useForYouFeed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/api/tan-query/lineups/useForYouFeed.ts b/packages/common/src/api/tan-query/lineups/useForYouFeed.ts index d2fffe085e3..f1b5f7eb921 100644 --- a/packages/common/src/api/tan-query/lineups/useForYouFeed.ts +++ b/packages/common/src/api/tan-query/lineups/useForYouFeed.ts @@ -88,7 +88,7 @@ export const useForYouFeed = ( isFetching: query.isFetching, isSuccess: query.isSuccess, isError: query.isError, - isInitialLoading: query.isInitialLoading, + isInitialLoading: isDisabled ? false : query.isInitialLoading, hasNextPage: query.hasNextPage, fetchNextPage: query.fetchNextPage, loadNextPage: makeLoadNextPage(query),