From 2d5a898001f5f0ae191c87fb4aa46551c2ecc047 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Thu, 13 Feb 2025 19:34:33 +0100 Subject: 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. --- frontend/src/gql/Queries.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'frontend/src/gql/Queries.ts') 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) { -- cgit v1.2.3-2-gb3c3