Trigger remember{} to recompute in Jetpack Compose by using a key

Описание к видео Trigger remember{} to recompute in Jetpack Compose by using a key

We use remember{} in Jetpack Compose to compute a value once, and then re-use that value, without recomputing it, on future recompositions. But what if we need to force it to recompute? We can use a key. In this video, I show how to use a key to force a remember function to recompute, and then re-remember the stored value.

All source code is freely available in GitHub: https://github.com/discospiff/MyPlant...
This video is part of a playlist on creating Android apps with Jetpack Compose, which is available here:    • Create an Android app with Jetpack Co...  

Комментарии

Информация по комментариям в разработке