예제 #1
0
 public static WeatherState ReduceFetchDataResultAction(WeatherState state, ActionFetchDataEffectResult action) =>
 new WeatherState(
     isLoading: false,
     forecasts: action.Forecasts);
예제 #2
0
 public static WeatherState ReduceFetchDataAction(WeatherState state, ActionFetchData action) =>
 new WeatherState(
     isLoading: true,
     forecasts: null);