Starts refactor using a PlayerView renderless component for Player logic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user