title: LiveData value not updating UI in Jetpack Compose until I navigate out
body: <p>I am calling an <em>increaseCount(id: String)</em> method from a composable to increase the value of a parameter in a LiveData List of objects. The value gets updated quite alright but the UI only shows the update once I navigate out. PS: I am using a BottomNavigation view for navigating.</p>
  <p>The Composable screen in question looks something like this</p>
  <pre><code>@Composabale
  fun MyScreen(navController: NavHostController, viewModel: MyViewModel){
  val itemList = viewModel.itemList.observeAsState().value
   LazyColumn(modifier = Modifier.fillMaxWidth()) {
          items(itemList) { item: Item? -&gt;
  
              ItemView(item, viewModel)
  
          }
      }
  }
  
  @Composable
  private fun ItemView(item: Item?, viewModel: MyViewModel) {
  Row(
              modifier = Modifier.padding(4.dp, 0.dp),
              verticalAlignment = Alignment.CenterVertically,
              horizontalArrangement = Arrangement.End
          ) {
              //Counter section
              IconButton(onClick = { viewModel.decreaseItemCount(cartItem.itemId) }) {
                  Icon(
                      imageVector = Icons.Filled.RemoveCircleOutline,
                      contentDescription = &quot;Reduce order button&quot;,
                      tint = Color.Gray
                  )
              }
              Text(text = &quot;${item.itemQuantity}&quot;)
              IconButton(onClick = { viewModel.increaseItemCount(item.itemId) }) {
                  Icon(
                      imageVector = Icons.Filled.AddCircleOutline,
                      contentDescription = &quot;Increase order button&quot;,
                      tint = Color(R.color.yellow_700)
                  )
              }
          }
  </code></pre>
  <p>The ViewModel side of things looks something like this:</p>
  <pre><code>private val _itemList = MutableLiveData&lt;ArrayList&lt;Item&gt;&gt;()
  val itemList: LiveData&lt;List&lt;Item&gt;&gt;
    get() = _itemList
  
   fun increaseItemCount(id: String) {
      val theList = _itemList.value
      theList?.find { item -&gt;
          item.itemId == id
      }?.let { item -&gt;
          item.itemQuantity += 1
          _itemList.value = theList!!
      }
  }
  </code></pre>
  <p>The <em>decreaseItemCount</em> function is similar to the <em>increaseItemCount</em> with the only difference being the count is decreasing.</p>