Fetch chapter download status with pages mutation
The pages mutation potentially changes the chapters download status, causing the cache to get outdated
This commit is contained in:
@@ -18,6 +18,11 @@ export const GET_CHAPTER_PAGES_FETCH = gql`
|
|||||||
chapter {
|
chapter {
|
||||||
id
|
id
|
||||||
pageCount
|
pageCount
|
||||||
|
isDownloaded
|
||||||
|
manga {
|
||||||
|
id
|
||||||
|
downloadCount
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pages
|
pages
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -519,7 +519,13 @@ export type GetChapterPagesFetchMutation = {
|
|||||||
fetchChapterPages: {
|
fetchChapterPages: {
|
||||||
__typename: 'FetchChapterPagesPayload';
|
__typename: 'FetchChapterPagesPayload';
|
||||||
pages: Array<string>;
|
pages: Array<string>;
|
||||||
chapter: { __typename: 'ChapterType'; id: number; pageCount: number };
|
chapter: {
|
||||||
|
__typename: 'ChapterType';
|
||||||
|
id: number;
|
||||||
|
pageCount: number;
|
||||||
|
isDownloaded: boolean;
|
||||||
|
manga: { __typename: 'MangaType'; id: number; downloadCount: number };
|
||||||
|
};
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user