Status Update
Comments
jo...@google.com <jo...@google.com>
as...@google.com <as...@google.com> #2
Can you try with the latest snapshot? Not reproducible for me on androidx-main.
jo...@google.com <jo...@google.com> #3
Ok, after trying a couple more versions, realized this is a duplicate of
From the release notes:
AndroidView's update callback's first invocation will now be defered until the view is attached, instead of running when the composition that introduces the AndroidView is applied. This fixes a bug where the update callback wouldn't be invalidated if a state it read was changed immediately by an effect. (Ie9438,
) b/291094055
Sorry for the confusion!
Description
Jetpack Compose version: tested with 1.3 and 1.5
Jetpack Compose component(s) used:
Android Studio Build: AS Iguana Canary 1
Kotlin version: 1.8.10
Steps to Reproduce or Code Sample to Reproduce:
In the following basic snippet,
AndroidView
's update method is not called if I define theAndroidView
as part of my composable. But when I extract it into its own composable, it does trigger correctly:Expected result:
Actual result: