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

Watcher API: Add support for pagination of transactions loading. #1070

Open
sk-enya opened this issue Jul 29, 2023 · 0 comments
Open

Watcher API: Add support for pagination of transactions loading. #1070

sk-enya opened this issue Jul 29, 2023 · 0 comments
Assignees

Comments

@sk-enya
Copy link
Contributor

sk-enya commented Jul 29, 2023

Issue Type

[ ] bug report
[x] feature request

Current Behavior

Currently, there is a significant load time on the history page to show the list of transactions available as we fetch all transaction in on call, also hooks is in place to fetch the txs at every interval of 20 seconds which causing the issue.

Expected Behavior

To fix to load time and show the transactions quickly on the history page.

Steps to Reproduce

Suggested Fix

  1. we should have pagination support added to the watcher API listed below so that we can load the transaction in chunk the user requested on the first load and on clicking the next set of Txs.
  • get.l1.transactions
  • get.l2.transactions
  • get.l2.pendingexits
  • get.layerzero.transactions
  1. Should make use of the react-query module on the gateway to fetch the text in a better way.

https://tanstack.com/query/latest/docs/react/overview

@sk-enya sk-enya self-assigned this Jul 29, 2023
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

No branches or pull requests

1 participant