private SubStateB SubStateBReducer(SubStateB previousState, object action) { if (action is ActionChangeSubstateB b) { return(new SubStateB(b.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; }