How can i use `collectAsStateWithLifecycle()` in C...
# compose
v
How can i use
collectAsStateWithLifecycle()
in Compose Multiplatform ? I tried adding
lifecycle-runtime-compose
to my app targetting Android and iOS but gradle fails to sync
Could not resolve androidx.lifecyclelifecycle runtime compose2.8.7.
t
There is JB specific version which works in common. Something like:
Copy code
jetbrains-lifecycle-common = { module = "org.jetbrains.androidx.lifecycle:lifecycle-common", version.ref = "lifecycle-jb" }