diff options
author | Wolfgang Müller | 2025-02-13 20:08:44 +0100 |
---|---|---|
committer | Wolfgang Müller | 2025-02-13 20:08:44 +0100 |
commit | bbf03cbc2822094cffe868e0710d2a8f7e1096c0 (patch) | |
tree | 25aadb52798bf0caa92b5d946c6c81d2f542a526 /frontend/src/gql/Queries.ts | |
parent | 2d5a898001f5f0ae191c87fb4aa46551c2ecc047 (diff) | |
download | hircine-bbf03cbc2822094cffe868e0710d2a8f7e1096c0.tar.gz |
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.
Diffstat (limited to 'frontend/src/gql/Queries.ts')
-rw-r--r-- | frontend/src/gql/Queries.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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' }); } |