Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrated getChannel to Push SDK #1450

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Migrated getChannel to Push SDK #1450

merged 2 commits into from
Mar 13, 2024

Conversation

hrithik73
Copy link
Contributor

@hrithik73 hrithik73 commented Mar 11, 2024

Changed getChannel method to get the channels list from push sdk using userPushSDKInstance.channel.list() method

Copy link

vercel bot commented Mar 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
push-dapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 13, 2024 0:12am

HarshRajat
HarshRajat previously approved these changes Mar 13, 2024
@@ -88,14 +79,15 @@ function ViewChannels({ loadTeaser, playTeaser, minimal }) {

// to fetch initial channels and logged in user data
const fetchInitialsChannelMeta = async () => {
// fetch the meta of the first `CHANNELS_PER_PAGE` channels
const channelsMeta = await getChannels({

Copy link
Member

Choose a reason for hiding this comment

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

Add try-catch here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added !

@@ -110,11 +102,11 @@ function ViewChannels({ loadTeaser, playTeaser, minimal }) {
// load more channels when we get to the bottom of the page
const loadMoreChannelMeta = async (newPageNumber: any) => {
const startingPoint = newPageNumber * CHANNELS_PER_PAGE;
Copy link
Member

Choose a reason for hiding this comment

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

Add try-catch in this function as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added !

@0xNilesh 0xNilesh merged commit 37095dd into main Mar 13, 2024
1 of 3 checks passed
@0xNilesh 0xNilesh deleted the channel-page-migration branch March 13, 2024 12:10
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.

😈 [Feature Enhancement] - <Update channels page to use Push SDK>
3 participants