title: Jetpack Compose Checkbox Not Showing Changed State
body: <p>I have a list of specialties from which the user will check. After the user is happy with their selection, I will gather the information for selected checkboxes and save those specialties in the user's profile.</p>
  <p>However, when I tap any of the checkboxes, the state in the view model changes but checkbox is still unchecked.</p>
  <p><strong>Specialty List</strong></p>
  <pre><code>@Composable
  fun SpecialtyList(
      viewModel: SpecialtyListViewModel = hiltViewModel(),
      navController: NavController
  ) {
      LazyColumn(modifier = Modifier.fillMaxSize()) {
          item {
              viewModel.specialtyList.value.forEach { specialty -&gt;
                  Row(
                      modifier = Modifier
                          .fillMaxWidth()
                          .padding(10.dp),
                      verticalAlignment = Alignment.CenterVertically
                  ) {
                      Checkbox(
                          checked = specialty.isSelected,
                          onCheckedChange = {
                              specialty.isSelected = it
                          },
                          colors = CheckboxDefaults.colors(MaterialTheme.colors.primary)
                  )
                      Text(
                          text = specialty.name,
                          modifier = Modifier
                              .padding(horizontal = 10.dp)
                      )
                  }
              }
          }
      }
  }
  </code></pre>
  <p><strong>Specialty View Model</strong></p>
  <pre><code>@HiltViewModel
  class SpecialtyListViewModel @Inject constructor() : ViewModel() {
  
      // HARD-CODED PROPERTIES
      val specialtyList = mutableStateOf(
          mutableListOf(
              Specialty(name = &quot;Emergency Medicine&quot;, isSelected = false),
              Specialty(name = &quot;Forensic Medicine&quot;, isSelected = false),
              Specialty(name = &quot;General Practitioner&quot;, isSelected = false)
      )
  }
  </code></pre>
  <p><strong>Specialty Model</strong></p>
  <pre><code>data class Specialty(
      val name: String,
      var isSelected: Boolean
  )
  </code></pre>