TheDusty01 / BlazingState

Powerful, robust, fast and yet simple state management with almost 0 boilerplate code.
Apache License 2.0
1 stars 0 forks source link

Make TState type nullable by demand, not always #2

Open megafetis opened 2 weeks ago

megafetis commented 2 weeks ago

nullable state

IStateobserver<MyNullableState?> state1 = new();

not nullable state

IStateObserver<MyNotNullableState> state1 = new(new MyNotNullableState() );
TheDusty01 commented 2 weeks ago

You are welcome to create a PR :) I'd suggest you to use Root Level Cascading Values though: https://learn.microsoft.com/en-us/aspnet/core/blazor/components/cascading-values-and-parameters?view=aspnetcore-8.0#root-level-cascading-values