WAI
Status Update
Comments
js...@google.com <js...@google.com> #2
I notice the same issue and LogCat shows the following message:
Google Play services out of date. Requires 3159100 but found 3136130
Google Play services out of date. Requires 3159100 but found 3136130
ka...@gmail.com <ka...@gmail.com> #3
Same here.
"Google Play services out of date. Requires 3159100 but found 3136130"
"Google Play services out of date. Requires 3159100 but found 3136130"
ka...@gmail.com <ka...@gmail.com> #4
me as well....
Google Play services out of date. Requires 3159100 but found 3136130
Google Play services out of date. Requires 3159100 but found 3136130
ka...@gmail.com <ka...@gmail.com> #5
I was hopeful that the release of API 18 (4.3) would have created a solution to this, unfortunately it includes version 3158130
Description
Description: Make it possible to determine if a composable was initialized or recomposed or it has been cleared without having to use viewModel.
Use Case: I want to use a different architecture than a viewModel for my compose app. When my compose view appears I would like to trigger a function that will make a network call. I could do it with a
LaunchedEffect
but it would retrigger on orientation change or when navigating back to the screen. I want to avoid this and have a function that wouldn't always retrigger. I was thinking of a function namedLauncedSaveableEffect
that would have similar behavior to therememberSavable
used together withLauncedEffect
, like this:Also, it would be nice to have info about when to view is not displayed anymore similar to the
onCleared
function of the viewModel so that I can clean up once my view is not visible anymore. I was thinking for this a methodDisposableSaveableEffect
could work the best, I imagine it could look like this:Currently, this second option is not even possible to be mimicked not even with the
rememberSaveable
. This makes it really hard to work with compose if you are using any other architecture other than viewmodel.