Skip to content

fix/PRO-2447/home-feed-api-update#88

Merged
RanaBug merged 2 commits intostagingfrom
fix/PRO-2447/home-feed-api-update
Jun 13, 2024
Merged

fix/PRO-2447/home-feed-api-update#88
RanaBug merged 2 commits intostagingfrom
fix/PRO-2447/home-feed-api-update

Conversation

@RanaBug
Copy link
Collaborator

@RanaBug RanaBug commented Jun 13, 2024

Description

  • Updated how the api feed the homepage and a few fixes after the api update

How Has This Been Tested?

  • Infinite scrolling with api pagination query and added wallet address query
  • Skeleton Tiles updates when fetching new pages of data
  • Streamlined how data is distributed for all tiles
  • Updates on the Tokens Vertical Tile
  • Updates tests

Screenshots (if appropriate):

Types of changes

  • [X ] Bug fix (non-breaking change which fixes an issue)
  • [X ] Breaking change (fix or feature that would cause existing functionality to change)

@RanaBug RanaBug requested a review from IAmKio June 13, 2024 15:00
@RanaBug RanaBug self-assigned this Jun 13, 2024
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 13, 2024

Deploying x with  Cloudflare Pages  Cloudflare Pages

Latest commit: c33317a
Status: ✅  Deploy successful!
Preview URL: https://3472d37d.x-e62.pages.dev
Branch Preview URL: https://fix-pro-2447-home-feed-api-u.x-e62.pages.dev

View logs

Copy link
Collaborator

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

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

Fantastic work so far!


useEffect(() => {
// when apiData loads, we save it in a state to keep previous data
if (apiData) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

May be worth importing isSuccess from the useGetTilesInfoQuery hook and adding it into the if statement here. This ensures that the request was successful before calling setPageData below otherwise it may load the cached data and we'll see the same tiles loading again

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes that's a good point, I've added it in, please check

Copy link
Collaborator

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

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

Great work!

@RanaBug RanaBug merged commit eec89b1 into staging Jun 13, 2024
@RanaBug RanaBug deleted the fix/PRO-2447/home-feed-api-update branch April 3, 2025 09:05
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