[wip] remove STATE_UPDATE

This commit is contained in:
Shin'ya Ueoka 2017-10-06 23:55:52 +09:00
parent 10ad62e606
commit 4cb17031d1
6 changed files with 31 additions and 32 deletions

View file

@ -70,8 +70,8 @@ export default class ConsoleComponent {
});
}
// TODO use store/reducer to update state.
update(state) {
update() {
let state = this.store.getState().console;
if (!this.prevState.commandShown && state.commandShown) {
this.showCommand(state.commandText);
} else if (!state.commandShown) {