State in Jetpack Compose - remember & mutableStateOf
HTML-код
- Опубликовано: 1 окт 2024
- Hello World, it's Jetpack Compose time.
Let's play around with State.
Follow me on
LinkedIn: / konstantinos-reppas-48...
Instagram: / konstantinos_reppas_
Twitter: / konstantinosr92
#state #jetpack #compose
perfect
Very cool explanation! Subscribed!
Very helpful. How would this work if you are observing when a property within an object changes?
Thank you :)
Ideally you want the state object to be immutable, therefore you will replace it with a new instance that has the fields you want changed. This will trigger recomposition as normal.
Great explanation ! good job!
Glad you liked it!
Initially I was not that clear with this concept. Thanks to you, now I have a solid understanding because of your remarkable explanation!
You're very welcome! And thanks for commenting!