Skip to content

Commit

Permalink
Add query key params for leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums committed Sep 20, 2024
1 parent 00ed5c4 commit 171a58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class HomeComponent {
}

query = injectQuery(() => ({
queryKey: ['leaderboard'],
queryKey: ['leaderboard', { after: this.after, before: this.before }],
queryFn: async () => lastValueFrom(this.leaderboardService.getLeaderboard(this.before, this.after)),
gcTime: Infinity
}));
Expand Down

0 comments on commit 171a58b

Please sign in to comment.