diff --git a/src/lib/graphql/mutations/MangaMutation.ts b/src/lib/graphql/mutations/MangaMutation.ts index b9d1ed7c..5d368135 100644 --- a/src/lib/graphql/mutations/MangaMutation.ts +++ b/src/lib/graphql/mutations/MangaMutation.ts @@ -75,6 +75,15 @@ export const UPDATE_MANGA = gql` id inLibrary inLibraryAt + categories { + nodes { + id + mangas { + totalCount + } + } + totalCount + } } } } @@ -88,6 +97,15 @@ export const UPDATE_MANGAS = gql` id inLibrary inLibraryAt + categories { + nodes { + id + mangas { + totalCount + } + } + totalCount + } } } } diff --git a/src/lib/requests/RequestManager.ts b/src/lib/requests/RequestManager.ts index fe42f1de..b916a7fd 100644 --- a/src/lib/requests/RequestManager.ts +++ b/src/lib/requests/RequestManager.ts @@ -1414,7 +1414,8 @@ export class RequestManager { ); result.response.then(() => { - this.graphQLClient.client.cache.evict({ fieldName: 'mangas' }); + this.graphQLClient.client.cache.evict({ broadcast: true, fieldName: 'categories' }); + this.graphQLClient.client.cache.evict({ broadcast: true, fieldName: 'mangas' }); }); return result;