public static ItemListState ReduceFetchItemListAction(ItemListState state, FetchItemListAction action) => new ItemListState( isLoading: true, items: null);
public async Task HandleFetchItemListAction(FetchItemListAction action, IDispatcher dispatcher) { var items = await _admin.GetAllItems(); dispatcher.Dispatch(new FetchItemListResultAction(items)); }