From 230dae83c350f419ac14520e8a5fc9004b98acbc Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sun, 14 Dec 2025 01:53:52 +0100 Subject: [PATCH] Fix SourceMangas showing incorrect loading placeholder After all pages had been loaded, the revalidation request of the first page caused the loading placeholder to not disappear anymore. This was only a visual bug and did not affect the actual functionality. --- src/lib/requests/RequestManager.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/requests/RequestManager.ts b/src/lib/requests/RequestManager.ts index 9ba6e16b..16ad47f1 100644 --- a/src/lib/requests/RequestManager.ts +++ b/src/lib/requests/RequestManager.ts @@ -625,7 +625,12 @@ export class RequestManager { >(cacheResultsKey, getVariablesFor(pageToRevalidate)); const isCachedPageInvalid = checkIfCachedPageIsInvalid(cachedPageData, revalidationResponse); - this.cache.cacheResponse(cacheResultsKey, getVariablesFor(pageToRevalidate), revalidationResponse); + this.cache.cacheResponse(cacheResultsKey, getVariablesFor(pageToRevalidate), { + ...revalidationResponse, + called: true, + isLoading: false, + size: pageToRevalidate, + }); if (!hasNextPage(revalidationResponse)) { const currentCachedPages = this.cache.getResponseFor>(cachePagesKey, getVariablesFor(0))!;