stacks-blockchain-api icon indicating copy to clipboard operation
stacks-blockchain-api copied to clipboard

Handle blocks pagination sync issue

Open He1DAr opened this issue 11 months ago • 1 comments

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.

He1DAr avatar Mar 08 '24 14:03 He1DAr

@smcclellan This is a dependency for us to create the nakamoto blocks view on Explorer. Can we prioritize it, please?

andresgalante avatar Mar 11 '24 14:03 andresgalante

@andresgalante Is this still needed, or worked around somehow?

smcclellan avatar Jun 05 '24 18:06 smcclellan

We can close this one, thanks 🙏

andresgalante avatar Jun 13 '24 15:06 andresgalante