Skip to content

fix: consolidate progress saves to prevent duplicate API calls on teardown#31

Open
Syed-Moiz-Ali wants to merge 1 commit into
windoze95:mainfrom
Syed-Moiz-Ali:fix/duplicate-progress-saves
Open

fix: consolidate progress saves to prevent duplicate API calls on teardown#31
Syed-Moiz-Ali wants to merge 1 commit into
windoze95:mainfrom
Syed-Moiz-Ali:fix/duplicate-progress-saves

Conversation

@Syed-Moiz-Ali

Copy link
Copy Markdown

Description\n\nAdds a _progressSavedOnExit\ flag to consolidate progress saving logic. When the user navigates back via _navigateBack(), the flag is set before saving. The \dispose()\ method then skips its own save if the flag is already true, preventing redundant identical API requests.\n\n## Fixes\n\nFixes #15 — Bug: Duplicate API calls to save progress on VideoPlayer teardown

@Syed-Moiz-Ali Syed-Moiz-Ali force-pushed the fix/duplicate-progress-saves branch from 4a195fe to 31bb4cb Compare June 16, 2026 08:04
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.

1 participant