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

fix: video refreshes after clicking on Mark as Complete/Incomplete #288

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

dhruvilmehta
Copy link
Contributor

@dhruvilmehta dhruvilmehta commented Mar 29, 2024

PR Fixes:

  • Currently, the video refreshes when we click on Mark as Complete/Incomplete button.

Solution:

  • The problem occurred because the source was updated repeatedly with state changes. I used useMemo() to cache it and now the source gets updated only when mpdUrl updates. And hence, the video doesn't get reloaded when clicking Mark as Complete/Incomplete

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

@hkirat hkirat merged commit 24d422f into code100x:main Apr 1, 2024
2 checks passed
@hkirat
Copy link
Contributor

hkirat commented Apr 1, 2024

/bounty $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.

2 participants