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

added next prev feature #572

Closed
wants to merge 2 commits into from

Conversation

iamnithishraja
Copy link
Contributor

@iamnithishraja iamnithishraja commented May 12, 2024

PR Fixes:

  • added next video button and previous video button feature

Resolves #559

output
gify

Checklist before requesting a review

  • I have performed a self-review of my code
  • I assure there is no similar/duplicate pull request regarding same issue

}) => {
const metadata = await getMetadata(content.id);

const prevNextUrls = await getNextPrevUrls(content.id, courseId);
Copy link
Contributor

Choose a reason for hiding this comment

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

dont do this here asynchronously. Thisll delay rendering until this is fetched, and this isnt needed for most renders

Do it in an effect maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sir using cached values instead of database fetches.
please do check the last file ./db/course.ts

@devsargam devsargam closed this Sep 24, 2024
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: No next and prev button for navigating between lectures.
3 participants