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:
@@ -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))!;
|
||||
|
||||
Reference in New Issue
Block a user