sui
sui copied to clipboard
[explorer] Now wait for just one API call to display
Reduces Load Time in the Home Page by using getRecentTransactions API function.
Before:
https://user-images.githubusercontent.com/11377188/179023268-8e83852e-1ecf-4dcb-b398-658f5a00fc44.mp4
After:
https://user-images.githubusercontent.com/11377188/179023497-17ccc084-cdb4-4570-884c-1ff21796d93a.mp4
@Andrew47 looks good. Although I am not sure how I can get the total tx count to pass the pagination component
@666lcz --> this PR is ready for another review. Following feedback, I've removed dependencies on unusual counts / transaction numbers. This means a different flow to how the Home Page works that is explained in added code comments.
@Andrew47 , thanks for addressing the comments and sorry for the delay in review. It looks like we are duplicating a lot of code in this PR and I am wondering if there's better way to avoid that. Will take a closer look today