Join Slack
Powered by
have any example with calls to api with compose?
# compose
r
Rodrigo Fonseca
02/18/2020, 9:28 PM
have any example with calls to api with compose?
t
Thierry
02/18/2020, 9:29 PM
if you follow the room with a view tutorial (it does't use compose) but that's the best practice setup with compose as well
Thierry
02/18/2020, 9:30 PM
you simply sync livedata object to state
Thierry
02/18/2020, 9:30 PM
https://codelabs.developers.google.com/codelabs/android-room-with-a-view/#0
Thierry
02/18/2020, 9:30 PM
https://stackoverflow.com/questions/59096435/using-livedata-as-state-inside-jetpack-compose-functions
r
Rodrigo Fonseca
02/18/2020, 9:32 PM
Cool I will try to do with these contents, thanks
3
Views
Open in Slack
Previous
Next