Skip to content

Conversation

@DzhideX
Copy link
Collaborator

@DzhideX DzhideX commented Jan 22, 2025

This PR aims to fix the issue described here: #6502

In the other hooks that implement this functionality, the pagination was done in the fetch directly through GraphQL. Since this fetches all of the referrals at once, I implemented the pagination functionality within the hook itself after the data is fetched. I also added sorting to show the latest referrals first.

cc @Lezek123

…egrate hook and add necessary changes to make it work
Copy link
Collaborator

@Lezek123 Lezek123 left a comment

Choose a reason for hiding this comment

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

LGTM

@Lezek123 Lezek123 merged commit b047676 into Joystream:dev May 9, 2025
4 of 8 checks passed
Lezek123 pushed a commit to Lezek123/atlas that referenced this pull request May 9, 2025
* Add hook which correctly fetches and paginates ypp referral data, integrate hook and add necessary changes to make it work

* Update VITE_YOUTUBE_SYNC_API_URL in .env
Lezek123 added a commit that referenced this pull request May 9, 2025
* Add YPP referral pagination (#6503)

* Add hook which correctly fetches and paginates ypp referral data, integrate hook and add necessary changes to make it work

* Update VITE_YOUTUBE_SYNC_API_URL in .env

* Add market transactions pagination (#6505)

* Move fetching functionality and add pagination within useMarketTransactionsPagination hook, accomodate code to integrate pagination

* Remove unnecessary comment

* Update packages/atlas/src/hooks/useMarketTransactionsPagination.ts

---------

Co-authored-by: Leszek Wiesner <leszek@jsgenesis.com>

* Update CHANGELOG and bump versions

---------

Co-authored-by: Edvin Dzidic <edvindzidic2000@gmail.com>
Lezek123 added a commit to Lezek123/atlas that referenced this pull request May 9, 2025
* Add YPP referral pagination (Joystream#6503)

* Add hook which correctly fetches and paginates ypp referral data, integrate hook and add necessary changes to make it work

* Update VITE_YOUTUBE_SYNC_API_URL in .env

* Add market transactions pagination (Joystream#6505)

* Move fetching functionality and add pagination within useMarketTransactionsPagination hook, accomodate code to integrate pagination

* Remove unnecessary comment

* Update packages/atlas/src/hooks/useMarketTransactionsPagination.ts

---------

Co-authored-by: Leszek Wiesner <leszek@jsgenesis.com>

* Update CHANGELOG and bump versions

---------

Co-authored-by: Edvin Dzidic <edvindzidic2000@gmail.com>
Lezek123 added a commit to Joystream/gleev that referenced this pull request May 9, 2025
* Add YPP referral pagination (Joystream#6503)

* Add hook which correctly fetches and paginates ypp referral data, integrate hook and add necessary changes to make it work

* Update VITE_YOUTUBE_SYNC_API_URL in .env

* Add market transactions pagination (Joystream#6505)

* Move fetching functionality and add pagination within useMarketTransactionsPagination hook, accomodate code to integrate pagination

* Remove unnecessary comment

* Update packages/atlas/src/hooks/useMarketTransactionsPagination.ts

---------



* Update CHANGELOG and bump versions

---------

Co-authored-by: Edvin Dzidic <edvindzidic2000@gmail.com>
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