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.
This commit is contained in:
schroda
2025-12-14 01:53:52 +01:00
parent 30856f996d
commit 230dae83c3

View File

@@ -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<Set<number>>(cachePagesKey, getVariablesFor(0))!;