From 11e98b6913a85219c3d90a806f672e054cca82b2 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 18 Aug 2025 22:43:40 +0200 Subject: [PATCH] Prevent infinite browse source loading The loading placeholder was never removed in case the whole source catalogue was added to the library and the "hide entries in library" setting has been enabled. --- src/features/source/browse/screens/SourceMangas.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/source/browse/screens/SourceMangas.tsx b/src/features/source/browse/screens/SourceMangas.tsx index 0d2bbcfa..d716293f 100644 --- a/src/features/source/browse/screens/SourceMangas.tsx +++ b/src/features/source/browse/screens/SourceMangas.tsx @@ -288,9 +288,9 @@ export function SourceMangas() { { data, error, isLoading: loading, size: lastPageNum, abortRequest, filteredOutAllItemsOfFetchedPage }, ] = useSourceManga(sourceId, contentType, query, filtersToApply, 1, hideLibraryEntries); currentAbortRequest.current = abortRequest; - const isLoading = loading || filteredOutAllItemsOfFetchedPage; const mangas = data?.fetchSourceManga?.mangas ?? []; const hasNextPage = !!data?.fetchSourceManga?.hasNextPage; + const isLoading = loading || (filteredOutAllItemsOfFetchedPage && hasNextPage); const { data: sourceData } = requestManager.useGetSource( GET_SOURCE_BROWSE, sourceId,