From 7866fdb9f1cc210616def1691b863f4e37122f8c Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 29 Apr 2024 12:50:58 +0200 Subject: [PATCH] Never use cache for manga chapters with state query Changed with 0c4ce2c9c50c1aa604931f7defab3fe667a50f26, 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 --- src/lib/requests/RequestManager.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/requests/RequestManager.ts b/src/lib/requests/RequestManager.ts index 680b2095..a72bd8b5 100644 --- a/src/lib/requests/RequestManager.ts +++ b/src/lib/requests/RequestManager.ts @@ -1795,7 +1795,15 @@ export class RequestManager { states: Pick, options?: QueryOptions, ): AbortabaleApolloQueryResponse { - 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(