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