[wip] remove STATE_UPDATE
This commit is contained in:
parent
10ad62e606
commit
4cb17031d1
6 changed files with 31 additions and 32 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue