Fix manga reload from source not updating cache
The potential partial response wasn't handled properly which resulted in apollo not updating the cache for the successful part. E.g., chapter reload failed, and manga refresh succeeded. The manga data of the response should have updated the manga in the cache.
This commit is contained in:
@@ -30,6 +30,7 @@ export const useRefreshManga = (mangaId: string) => {
|
|||||||
try {
|
try {
|
||||||
const { error: tmpError } = await requestManager.refreshManga(mangaId, {
|
const { error: tmpError } = await requestManager.refreshManga(mangaId, {
|
||||||
awaitRefetchQueries: true,
|
awaitRefetchQueries: true,
|
||||||
|
errorPolicy: 'all',
|
||||||
}).response;
|
}).response;
|
||||||
|
|
||||||
handleError(tmpError);
|
handleError(tmpError);
|
||||||
|
|||||||
Reference in New Issue
Block a user