Never use cache for manga chapters with state query
Changed with 0c4ce2c9c5, but it does not work because the chapters state could have changed in the meantime, changing the chapters included in the query response, which is not represented by the cached query
This commit is contained in:
@@ -1795,7 +1795,15 @@ export class RequestManager {
|
|||||||
states: Pick<ChapterConditionInput, 'isRead' | 'isDownloaded' | 'isBookmarked'>,
|
states: Pick<ChapterConditionInput, 'isRead' | 'isDownloaded' | 'isBookmarked'>,
|
||||||
options?: QueryOptions<GetMangasChapterIdsWithStateQueryVariables, GetMangasChapterIdsWithStateQuery>,
|
options?: QueryOptions<GetMangasChapterIdsWithStateQueryVariables, GetMangasChapterIdsWithStateQuery>,
|
||||||
): AbortabaleApolloQueryResponse<GetMangasChapterIdsWithStateQuery> {
|
): AbortabaleApolloQueryResponse<GetMangasChapterIdsWithStateQuery> {
|
||||||
return this.doRequest(GQLMethod.QUERY, GET_MANGAS_CHAPTER_IDS_WITH_STATE, { mangaIds, ...states }, options);
|
return this.doRequest(
|
||||||
|
GQLMethod.QUERY,
|
||||||
|
GET_MANGAS_CHAPTER_IDS_WITH_STATE,
|
||||||
|
{ mangaIds, ...states },
|
||||||
|
{
|
||||||
|
fetchPolicy: 'no-cache',
|
||||||
|
...options,
|
||||||
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getMangaChaptersFetch(
|
public getMangaChaptersFetch(
|
||||||
|
|||||||
Reference in New Issue
Block a user