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: Jank when naviating to FolderVideoPickerScreen #260

Merged
merged 2 commits into from
May 22, 2023

Conversation

anilbeesetti
Copy link
Owner

  • The app experiences jank when videosState updates before the initial render finishes when navigating to FolderVideoPickerScreen

This pr fixes this by adding

collectAsStateWithLifecycle(minActiveState = Lifecycle.State.RESUMED)

By adding Lifecycle.State.RESUMED, we ensure that we wait until the first render completes.

@anilbeesetti anilbeesetti merged commit e3f407d into main May 22, 2023
3 checks passed
@anilbeesetti anilbeesetti deleted the fix/videos-screen-jank branch May 22, 2023 04:03
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.

None yet

1 participant