Use a Model for State | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/7111549-jetpack-compose-primer/lessons/7

When trying to display the first member in onCreate , nothing gets displayed in emulator. The logcat confirms that the data was retrieved. I believe I followed the steps in their entirety.

Hi @jshvarts! Can you post your TeamMembersActivity.kt file here, in order to help diagnose what might be going on? Thanks!

Attached (I had to zip it up to be able to attach)
TeamMembersActivity.zip (1.8 KB)

Thanks @jshvarts! What youโ€™re missing is the step at 1:31 of the episode where you replace the Log statement with an update on membersState. Make that change and you should see the member on the screen when the API call completes.

Thanks @macsimus! I canโ€™t believe I missed that!