Пример #1
0
 public static ItemListState ReduceFetchItemListResultAction(ItemListState state, FetchItemListResultAction action) =>
 new ItemListState(
     isLoading: false,
     items: action.Items
     );
Пример #2
0
 public static ItemListState ReduceFetchItemListAction(ItemListState state, FetchItemListAction action) =>
 new ItemListState(
     isLoading: true,
     items: null);