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

Комментарии • 8

  • @opelemmanuel5731
    @opelemmanuel5731 10 дней назад

    perfect

  • @Klusio19
    @Klusio19 4 месяца назад

    Very cool explanation! Subscribed!

  • @TheOneToWatch
    @TheOneToWatch 6 месяцев назад

    Very helpful. How would this work if you are observing when a property within an object changes?

    • @KonstantinosReppas
      @KonstantinosReppas  6 месяцев назад

      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.

  • @MrSolja95
    @MrSolja95 Год назад +1

    Great explanation ! good job!

  • @poojapriyadarshnips8076
    @poojapriyadarshnips8076 8 месяцев назад

    Initially I was not that clear with this concept. Thanks to you, now I have a solid understanding because of your remarkable explanation!