stacks-blockchain-api
stacks-blockchain-api copied to clipboard
Handle blocks pagination sync issue
We're encountering an issue with the pagination on Nakamoto blocks page. When a user lands on the page and initially receives the first page of blocks (blocks 30 to 1). If the user waits a few seconds and in the meantime 10 new blocks arrive (so now the total blocks are 40 to 1). Then, if the user clicks "load more" to fetch the second page, the pages will fall out of sync.
Possible solutions:
- Add a filter to only show blocks before certain height
- Use a pagination cursor that is passed from the API then sent back with the subsequent request.
@smcclellan This is a dependency for us to create the nakamoto blocks view on Explorer. Can we prioritize it, please?
@andresgalante Is this still needed, or worked around somehow?
We can close this one, thanks 🙏