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

[Feature Request] Compose - CollectAsStateWithLifecycle #714

Merged
merged 1 commit into from
Apr 16, 2024

Commits on Apr 4, 2024

  1. feat : Compose - collectAsStateWithLifecycle

    Add Compose-related convenience functions to collect a State variable in a lifecycle-aware manner.
    Mirror `collectAsState` extension functions and create the lifecycle-aware version `collectAsStateWithLifecycle`.
    
    Add new dependency to `androidx.lifecycle:lifecycle-runtime-compose`.
    
    Update `ComposeSampleActivity` to use one of the new `collectAsStateWithLifecycle` extension function.
    Julien Pedron committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    008cf3b View commit details
    Browse the repository at this point in the history