예제 #1
0
 public static BlockSearchState ReduceFetchDataResultAction(BlockSearchState state, BlockSearchResultAction action) =>
 new BlockSearchState(
     isLoading: false,
     blockResult: action.block,
     previousBlock: action.prevBlock,
     pageKey: action.key,
     maxHeight: action.maxHeight);
예제 #2
0
 public static BlockSearchState ReduceFetchDataAction(BlockSearchState state, BlockSearchAction action) =>
 new BlockSearchState(
     isLoading: true,
     blockResult: null,
     previousBlock: null,
     pageKey: null,
     maxHeight: 0);