In Jetpack Compose you can use rememberUpdatedState to capture values that may update over time but without a full restart of the rememberUpdatedState function.