Use a Model for State |

This is a companion discussion topic for the original entry at

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) (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!