Skip to content

Commit

Permalink
Remove re-fetching of manga query on chapter update (#449)
Browse files Browse the repository at this point in the history
The mutation returns the mutated manga, thus, updating the cache which makes this  refetch unnecessary and just creates redundant requests.
  • Loading branch information
schroda authored Nov 11, 2023
1 parent c5f943d commit 291e189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/requests/RequestManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ export class RequestManager {
GQLMethod.MUTATION,
UPDATE_CHAPTER,
{ input: { id, patch } },
{ refetchQueries: [GET_MANGA], ...options },
options,
);
}

Expand Down

0 comments on commit 291e189

Please sign in to comment.