title: LazyColumn and mutable list - how to update?
body: <p>I'm new to Jetpack Compose and I've spent some hours to find how to make a LazyColumn update what I update my list. I've read that it needs to be a immutable list to update LazyColumn, but I can't seem to get it to work.</p>
  <p>The code looks like:</p>
  <pre><code>@Composable
  fun CreateList() {
      var myList : List&lt;DailyItem&gt; by remember { mutableStateOf(listOf())}
      
      myList = getDailyItemList() // Returns a List&lt;DailyItem&gt; with latest values and uses mutable list internally
      
      // Function to refresh the list
      val onUpdateClick = {
          // Do something that updates the list
          ...
          // Get the updated list to trigger a recompose
          myList = getDailyItemList()
      }
      // Create the lazy column
      ...
  }
  </code></pre>
  <p>I have tried several things and either is the list never updated when tapping the update button or only the first item is updated but not the rest of the items in the list. I looked in the documentation and there it says this, but I don't understand it:</p>
  <blockquote>
  <p>Instead of using non-observable mutable objects, we recommend you use
  an observable data holder such as State&lt;List&gt; and the immutable
  listOf().</p>
  </blockquote>
  <p>How to update the list so the LazyColumn is updated?</p>