Skip to content

Commit

Permalink
fix double sending query
Browse files Browse the repository at this point in the history
  • Loading branch information
Robonau authored and Robonau committed Dec 10, 2024
1 parent 5c0c815 commit db87c83
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/routes/(app)/(library)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,9 @@
}
if (!reloadManga) return;
reloadManga = false;
queryState({
client,
query: getCategory,
variables: { id: $tab ?? 0 },
requestPolicy: 'network-only'
});
client
.query(getCategory, { id: $tab ?? 0 }, { requestPolicy: 'network-only' })
.toPromise();
}
onMount(() => {
Expand Down

0 comments on commit db87c83

Please sign in to comment.