Starts refactor using a PlayerView renderless component for Player logic

This commit is contained in:
2019-07-31 15:11:51 +02:00
parent 2991a88a30
commit fccd9b999b
8 changed files with 139 additions and 143 deletions

View File

@@ -60,7 +60,7 @@ export const AppStorage = {
const [players, claims] = data;
this.__initPlayerList(players);
this.__initClaimsStore(claims);
});
})
// TODO: when __initPlayerList won't use promises
//.then(_ => this.state.initiated = true);
},
@@ -94,7 +94,8 @@ export const AppStorage = {
));
promises.push(promise);
}
Promise.all(promises).then(_ => this.state.initiated = true);
Promise.all(promises)
.then(_ => this.state.initiated = true)
},
// User actions
// Sets a new active player by id