Conclusion

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Here’s what you did in this lesson:

  • Implemented state management within a ViewModel using Observation.
  • Differentiated between public and private or @ObservationIgnored properties in ViewModels and their appropriate usage scenarios.

Views can track changes to all the properties in an @Observable object, except those you mark as private or @ObservationIgnored.

See forum comments
Download course materials from Github
Previous: Demo 2 Next: State Management in ViewModels Quiz