Skip to content

Commit

Permalink
Fix documentation error
Browse files Browse the repository at this point in the history
  • Loading branch information
npresseault committed May 14, 2024
1 parent cb95084 commit 346b570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/viewmodel.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct YourView: View {
init(viewModel: YourViewModel) {
_viewModelLifecycle = StateObject(wrappedValue: ViewModelLifecycleHandler(viewModel: viewModel))
_someData = ObservedObject(wrappedValue: StateObservable(viewModel.someData))
_someNullableData = ObservedObject(wrappedValue: NullableStateObservable(viewModel.someData))
_someNullableData = ObservedObject(wrappedValue: NullableStateObservable(viewModel.someNullableData))
}

var body: some View {
Expand Down

0 comments on commit 346b570

Please sign in to comment.