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:
schroda
2026-07-07 20:39:39 +02:00
parent 3112f7c47e
commit 44583b5b2f

View File

@@ -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);