コード例 #1
0
 public static ItemListState ReduceFetchItemListAction(ItemListState state, FetchItemListAction action) =>
 new ItemListState(
     isLoading: true,
     items: null);
コード例 #2
0
        public async Task HandleFetchItemListAction(FetchItemListAction action, IDispatcher dispatcher)
        {
            var items = await _admin.GetAllItems();

            dispatcher.Dispatch(new FetchItemListResultAction(items));
        }