Colton Idle
06/30/2021, 10:22 PMvar myCount by remember { mutableStateOf(0) }
val shouldDisplay = remember { derivedStateOf { (myCount > 1) } }
Mitchell Skaggs
06/30/2021, 10:25 PMTash
06/30/2021, 10:26 PMimport androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
Colton Idle
06/30/2021, 10:27 PMTash
06/30/2021, 10:28 PMColton Idle
06/30/2021, 10:28 PMTash
06/30/2021, 10:29 PMOutlineTextField
)Colton Idle
06/30/2021, 10:30 PMhfhbd
07/01/2021, 8:56 AMTash
07/02/2021, 12:53 AMderivedStateOf
?hfhbd
07/02/2021, 2:15 AMMitchell Skaggs
07/02/2021, 2:16 AMderivedStateOf
allows the Compose runtime to understand dependent functions and only recompute values if necessary.hfhbd
07/02/2021, 10:00 AM