Skip to content
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

fix: infinite loading on too many requests #1809

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

arthurgeron
Copy link
Contributor

@arthurgeron arthurgeron commented Feb 5, 2025

  • Closes Infinite Loading on TX History #1808

  • Closes FE-1433

  • Fixed infinitely reading all transactions, now instead it only loads the data for what it's going to show (i.e. current page)

  • Also transaction History screen should now load faster, including data incoming after clicking on "load more"

CleanShot.2025-02-05.at.15.57.34.mp4

const result = await TxService.getAllCursors({
address,
providerUrl,
initialEndCursor,
maxDepth: 1,
Copy link
Member

Choose a reason for hiding this comment

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

Does this still allow for scrolling through all transactions? Or will it limit the results to the first page?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It passes the last cursor position so it won't fetch the same data everytime, only the data that needs to be shown.

@arthurgeron arthurgeron marked this pull request as draft February 5, 2025 18:16
@arthurgeron arthurgeron requested a review from Voxelot February 5, 2025 19:01
@arthurgeron arthurgeron marked this pull request as ready for review February 5, 2025 19:01
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.

Infinite Loading on TX History
2 participants