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:
Nicolas Gotchac
2016-12-11 21:03:40 +01:00
committed by Jaco Greeff
parent f4134cf634
commit 4dbfcf231d
6 changed files with 352 additions and 168 deletions

View File

@@ -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 () {