val counter: MutableLiveData<Int> = handle.getLiveData("counter") } class MainActivity : AppCompatActivity() { private val binding by lazy { ActivityMainBinding.inflate(layoutInflater) } private val viewModel by viewModels<MainViewModel> { SavedStateVMFactory(this, bundleOf("counter” to 0)) } }
Redux-like architecture for Jetpack Compose • Many companies have already adopt it, such as Netflix • ⛈ • Schedule for other libraries can be postponed, because of tough competition between Swift UI and Jetpack Compose. • Already happened last year: Some of promise in 2018 were not yet kept, because of AS 3.4/3.5 and R8 Forecast (in my personal opinion)