private SubStateA SubStateAReducer(SubStateA previousState, object action) { if (action is ActionChangeSubstateA a) { return(new SubStateA(a.newVal)); } return(previousState); }
public MyAppState1(SubStateA newA, SubStateB newB, SubStateC newC) { substateA = newA; substateB = newB; substateC = newC; }
public MyAppState1(SubStateA newA, SubStateB newB) { substateA = newA; substateB = newB; }