Join Slack
Powered by
Is there a recommended place/callback to use for t...
# compose
r
Rahul Sainani
02/27/2021, 11:17 PM
Is there a recommended place/callback to use for the first composition, analogous to fragment's onCreate?
a
Arkadii Ivanov
02/27/2021, 11:37 PM
Maybe DisposableEffect?
https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#disposableeffect_1
r
Rahul Sainani
02/27/2021, 11:59 PM
Hey, looked into it, not exactly what i was looking for but good to know about it! Thanks! 🙌
k
kevindmoore
02/28/2021, 4:31 AM
Do you mean the setContent call in the Activity’s onCreate method?
r
Rahul Sainani
02/28/2021, 7:35 AM
Hey I explain in detail in this thread :) -->
https://kotlinlang.slack.com/archives/CJLTWPH7S/p1614468393124400?thread_ts=1614468393.124400&cid=CJLTWPH7S
4
Views
Open in Slack
Previous
Next