title: Android Compose not refresh with viewModel uiState
body: <p>I am doing a simple app in compose in order to learn in, the app has two <code>viewModels</code>, <code>ItemListViewModel</code> that shows a list of items and <code>ItemCreateViewModel</code> that let you create the item, items are stored in Room.</p>
  <p>My issue is that when I open the app the list is shown, but after I open the detail and create a new Item, going back the the first (<code>ItemListViewModel</code>) the list is not updated.</p>
  <pre><code>@HiltViewModel
  class ItemListViewModel
  @Inject
  constructor(private val itemRepository: ItemRepository) : ViewModel() {
  
      var uiState by mutableStateOf(value = ItemListState(state = State.LOADING))
          private set
  
      init {
          viewModelScope.launch(Dispatchers.IO) {
              itemRepository.fetchItems()
                  .distinctUntilChanged()
                  .collect { items -&gt;
                      uiState = uiState.copy(
                          state = State.IDLE,
                          items = if (items.isNullOrEmpty()) emptyList() else items
                      )
                  }
          }
      }
  </code></pre>
  <p>and here the Compose view</p>
  <pre><code>@Composable
  fun ItemList(
      viewModel: ItemListViewModel,
      navController: NavController
  ) {
  
   
      val items = viewModel.uiState.items
      ShowItems(items)  // &lt;--- this is not called
  
  }
  
  </code></pre>
  <p>this is the repository fun</p>
  <pre><code>fun fetchItems(): Flow&lt;List&lt;ItemEntity&gt;&gt;
  </code></pre>
  <p>If I kill the app and restart it, I can see the new created item.</p>