diff --git a/docs/pages/sharedstate.md b/docs/pages/sharedstate.md index 9e7300a..fd0fa2f 100644 --- a/docs/pages/sharedstate.md +++ b/docs/pages/sharedstate.md @@ -146,7 +146,7 @@ create your observables with [Observable<T>](xref:Cortex.Net.Api.SharedSta To use constructor arguments in your models to pass around [ISharedState](xref:Cortex.Net.ISharedState) instances, you can implement [IReactiveObject](xref:Cortex.Net.IReactiveObject) yourself. Do it exactly like this with an auto-generated public getter and private setter. The weaver will then append the setter with the correct code to -handle Shared State assignment. You must must assign `this.SharedState` in the constructor or you will get +handle Shared State assignment. You must assign `this.SharedState` in the constructor or you will get NullReferenceExceptions. ```csharp @@ -173,4 +173,4 @@ public class PersonWeave : IReactiveObject Generally explicit constructor arguments are nice for DI, and make your dependencies clear, but it may give problems with serialization libraries or ui components that require parameterless constructors. It also saves you a call to [Observable<T>](xref:Cortex.Net.Api.SharedStateObservableExtensions.Observable*) -to implicitly pass the shared state around. Choose wisely. \ No newline at end of file +to implicitly pass the shared state around. Choose wisely.