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