-
Notifications
You must be signed in to change notification settings - Fork 498
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
Question - collectAsStateWithLifecycle #711
Comments
I don't think modifying the existing collectAsState functions would be good, as it might not be what some people want, but we could add equivalent methods for collectAsStateWithLifecyle in https://github.com/airbnb/mavericks/blob/main/mvrx-compose/src/main/kotlin/com/airbnb/mvrx/compose/MavericksComposeExtensions.kt Feel free to put up a PR |
Hi @elihart. |
The way github works, you need to fork the project and push the branch to your fork, then create a PR from there |
Thanks for the advice. Here is the PR -> #714 |
This article from Manuel Vivo suggests to use
collectAsStateWithLifecycle
API instead of standardcollectAsState
to safely consume flows in Jetpack Compose.I noticed that extension provided in
mvrx-compose
module rely oncollectAsState
. Is it planned to use tocollectAsStateWithLifecyle
or is there a specific feature in Mavericks implementation that makes it already Lifecycle aware ?Regards.
The text was updated successfully, but these errors were encountered: