---
title: "Comment by Abdurahmon Jamoliddinov on \"MVVM in SwiftUI\" | Hashnode"
description: "What do you think about using @ObservedObject instead of @StateObject, is it good practice or is it better to use @StateObject?"
url: "https://hashnode.com/posts/mvvm-in-swiftui/6451db571f2e7841f809e850/comment/659cdee0b80581bc195dcf7b"
---

[Discussion](https://hashnode.com/posts/mvvm-in-swiftui/6451db571f2e7841f809e850)

Comment [MVVM in SwiftUI](https://hashnode.com/posts/mvvm-in-swiftui/6451db571f2e7841f809e850)

[Abdurahmon Jamoliddinov](https://hashnode.com/@abdudev)

[Jan 9, 2024](https://hashnode.com/posts/mvvm-in-swiftui/6451db571f2e7841f809e850/comment/659cdee0b80581bc195dcf7b)

What do you think about using @ObservedObject instead of @StateObject, is it good practice or is it better to use @StateObject?

[Xavier](https://hashnode.com/@xavier7t)

[Sep 15, 2024](https://hashnode.com/posts/mvvm-in-swiftui/6451db571f2e7841f809e850/comment/659cdee0b80581bc195dcf7b#reply-66e64dff28240e8a143354a9)

it depends on the case. State is the source of truth. So use `StateObject` in views where the data is created/captured. Other views should use `ObservedObject` to observe the state.
