Skip to content

♻️ Update: pagination persist on page reload#269

Closed
ArslanAmeer wants to merge 1 commit intorealworld-apps:mainfrom
ArslanAmeer:main
Closed

♻️ Update: pagination persist on page reload#269
ArslanAmeer wants to merge 1 commit intorealworld-apps:mainfrom
ArslanAmeer:main

Conversation

@ArslanAmeer
Copy link
Copy Markdown

@ArslanAmeer ArslanAmeer commented Oct 2, 2023

Issue:
The ArticleListComponent would reset to the first page on reloads, losing the current pagination state.

Solution:
Leveraged Angular's ActivatedRoute and Router services to keep the pagination state in sync with a page query parameter in the URL. Now, on initialization, the ArticleListComponent reads the page query parameter to set the initial page, and updates the URL query parameter as the user navigates through the pagination controls. This ensures the current pagination state is retained across reloads or navigation to other pages and back.

@EricSimons @geromegrignon

@geromegrignon
Copy link
Copy Markdown
Contributor

That's a great idea I ant to push for the project but this repository is just an implementation. We need to firstly update the specs.

@ArslanAmeer
Copy link
Copy Markdown
Author

Sure.

@c4ffein
Copy link
Copy Markdown
Contributor

c4ffein commented Mar 20, 2026

@c4ffein c4ffein closed this Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants