rendered the data in the component

This commit is contained in:
Daria Golova
2022-07-13 14:45:17 +03:00
parent b9f795c0e4
commit 2eeb39abc9
3 changed files with 21 additions and 118 deletions

View File

@@ -19,12 +19,12 @@ class Store {
this.fetchNodeInfo()
reaction(() => this.tokenKey, () => this.fetchData())
reaction(() => this.tokenKey, () => this.getData())
};
fetchData() {
getData() {
this.fetchNewAccountData();
this.fetchLinksArray();
this.fetchKeysArray();
}
fetchNewAccountData() {
@@ -42,7 +42,7 @@ class Store {
.then(()=>this.fetchNewAccountData())
}
fetchLinksArray() {
fetchKeysArray() {
fetchWrapper.getAuth('https://ccab53ea-d042-47b3-b9b4-79b913f47b3d.mock.pstmn.io/data/shared', {
networkIdentifier: this.nodeInfo.networkIdentifier,
lastBlockID: this.nodeInfo.lastBlockID