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

Enable pagination in Events lists #1489

Merged
merged 2 commits into from
Jul 23, 2024
Merged

Enable pagination in Events lists #1489

merged 2 commits into from
Jul 23, 2024

Conversation

Copy link

github-actions bot commented Jul 22, 2024

Deployed to Cloudflare Pages

Latest commit: b466a4889961e4eb9f25f7f7813b02faa86f565b
Status:✅ Deploy successful!
Preview URL: https://dc9c017d.oasis-explorer.pages.dev

if (layer === Layer.consensus) {
throw AppErrors.UnsupportedLayer
}
const eventsQuery = useGetRuntimeEvents(network, layer, {
tx_hash: transaction.hash,
limit: 100, // We want to avoid pagination here, if possible
Copy link
Contributor Author

@buberdds buberdds Jul 22, 2024

Choose a reason for hiding this comment

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

Why we want to avoid pagination and why we set 100 cap?

Copy link
Member

Choose a reason for hiding this comment

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

Related: #226

Copy link
Member

Choose a reason for hiding this comment

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

🤷 I can't find an explanation. 1000 limit was allowed when #224 was made

@buberdds buberdds force-pushed the mz/eventsPagination branch from e549858 to 0e1ebc9 Compare July 22, 2024 09:45
@buberdds buberdds merged commit 00e3114 into master Jul 23, 2024
8 checks passed
@buberdds buberdds deleted the mz/eventsPagination branch July 23, 2024 07:59
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.

2 participants