Whack derive memo (#1546)

* Whack derive memo

* Bump common
This commit is contained in:
Jaco Greeff
2019-11-05 14:36:53 +01:00
committed by GitHub
parent 3fd03b2498
commit 3998b1bcbd
44 changed files with 142 additions and 142 deletions
@@ -10,12 +10,12 @@ import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { Vec } from '@polkadot/types';
import { drr, memo } from '../util';
import { drr } from '../util';
/**
* @description Retrieve latest list of validators
*/
export const validators = memo((api: ApiInterfaceRx): () => Observable<DeriveStakingValidators> => {
export function validators (api: ApiInterfaceRx): () => Observable<DeriveStakingValidators> {
return (): Observable<DeriveStakingValidators> =>
api.queryMulti<[Vec<AccountId>, Vec<AccountId>]>([
api.query.session.validators,
@@ -26,4 +26,4 @@ export const validators = memo((api: ApiInterfaceRx): () => Observable<DeriveSta
})),
drr()
);
}, true);
}