-
Notifications
You must be signed in to change notification settings - Fork 28
Remembering pagination state for tx table #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remembering pagination state for tx table #336
Conversation
✅ Deploy Preview for dev-mainnet-teloscan ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for teloscan-stage ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should handle this in the router by incorporating query/filter params as part of routing (e.g. /<address>?page=3 ) to track pagination instead of using state. This allows history tracking and avoids unintended behavior. For instance, If you navigate to a different page and click on an address in the table, the page state is applied where it shouldn't be.
Deploying with
|
| Latest commit: |
d26b1bc
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://00fc1722.teloscan.pages.dev |
| Branch Preview URL: | https://293-facilitate-user-navigati-7ao3.teloscan.pages.dev |
…ck-of-where-they-were-1
ezra-sg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, this works great
Fixes #293
Description
When you find a special transaction from the table and you follow the link and then come back to the table, the pagination is lost and you must start from the first page again which leads to a terrible user experience.
This PR makes the table save in local storage the last pagination state and recovers it every time the table is used again.
Test scenarios
To recreate this new behavior you must:
Checklist: