summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorWolfgang Müller2025-02-13 19:34:33 +0100
committerWolfgang Müller2025-02-13 19:34:33 +0100
commit2d5a898001f5f0ae191c87fb4aa46551c2ecc047 (patch)
tree69d25001b7410900f5016b218531cf0c6b4b840b
parentffc2ac4c8c7b52fda86500a413421a071c506d5a (diff)
downloadhircine-2d5a898001f5f0ae191c87fb4aa46551c2ecc047.tar.gz
frontend: Always fetch statistics from the network
Since the data fetched in the statistics query will be invalidated by basically any mutation and tracking the dependencies manually like we do with other queries is not feasible, simply have it load from network always.
-rw-r--r--frontend/src/gql/Queries.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/src/gql/Queries.ts b/frontend/src/gql/Queries.ts
index 28bbf63..05f63c7 100644
--- a/frontend/src/gql/Queries.ts
+++ b/frontend/src/gql/Queries.ts
@@ -201,7 +201,11 @@ export function frontpageQuery(client: Client) {
}
export function statisticsQuery(client: Client) {
- return queryStore({ client: client, query: gql.StatisticsDocument });
+ return queryStore({
+ client: client,
+ query: gql.StatisticsDocument,
+ requestPolicy: 'network-only'
+ });
}
export function fetchArtist(client: Client, id: number) {