Skip to content

Conversation

elinejaa
Copy link
Member

@elinejaa elinejaa commented Oct 9, 2026 •

gameClient currently loads games with fetchGame(), if not specified all 200 games will be fetched. gameClient will check if game is located in localstorage, and not fetch from database if true. Otherwise the database is called. Localstorage will update every 12 hours with a new call to the database.

Searchpage uses fetchGame() to load all games, shows 12 games on one page, and has a functional pagination bar.

@elinejaa elinejaa linked an issue Oct 9, 2026 that may be closed by this pull request
2 tasks
The website will only fetch from the DB if the games are not already in local storage, local storage will fetch again after 12 hours to stay updated.
@elinejaa elinejaa marked this pull request as ready for review October 13, 2026 13:45
@elinejaa elinejaa requested a review from a team as a code owner October 13, 2026 13:45
Copy link
Member

@carmennt carmennt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good! :D

@carmennt carmennt merged commit 3bf5890 into main Oct 13, 2026
@carmennt carmennt deleted the 44-implement-game-paging branch October 13, 2026 18:58
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement game paging
2 participants