Cache fetched Dapps (#3804)
* Have a singleton DappsFetcher so we don't realod them at each page load * Better dapps Fetcher : event based listener Update on meta change * Remove dapps fetcher => all in singleton dapps store + utils * Modify header to Parity
This commit is contained in:
committed by
Jaco Greeff
parent
f4134cf634
commit
4dbfcf231d
@@ -22,8 +22,12 @@ export default class DappReg {
|
||||
this.getInstance();
|
||||
}
|
||||
|
||||
getContract () {
|
||||
return this._registry.getContract('dappreg');
|
||||
}
|
||||
|
||||
getInstance () {
|
||||
return this._registry.getContractInstance('dappreg');
|
||||
return this.getContract().then((contract) => contract.instance);
|
||||
}
|
||||
|
||||
count () {
|
||||
|
||||
Reference in New Issue
Block a user