From bbf03cbc2822094cffe868e0710d2a8f7e1096c0 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Thu, 13 Feb 2025 20:08:44 +0100 Subject: frontend: Use current date to seed frontpage results Use the current date (year, month, and day) instead of generating a new seed every time and potentially making the user unable to go back to see results that were displayed a moment ago. This essentially makes the frontpage display daily favourites and bookmarks. Additionally make sure to set the seed in the filter when navigating to the respective category. --- frontend/src/gql/Queries.ts | 3 ++- 1 file changed, 2 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 05f63c7..c2f1432 100644 --- a/frontend/src/gql/Queries.ts +++ b/frontend/src/gql/Queries.ts @@ -192,10 +192,11 @@ export function worldsQuery(client: Client, args?: gql.WorldsQueryVariables) { }); } -export function frontpageQuery(client: Client) { +export function frontpageQuery(client: Client, args: gql.FrontpageQueryVariables) { return queryStore({ client: client, query: gql.FrontpageDocument, + variables: args, requestPolicy: 'network-only' }); } -- cgit v1.2.3-2-gb3c3