single reducer

This commit is contained in:
Shin'ya Ueoka 2017-10-04 22:01:16 +09:00
parent 6594841b1d
commit 79a4a805f6
6 changed files with 14 additions and 9 deletions

View file

@ -6,7 +6,7 @@ export default class Completion {
}
update() {
let state = this.store.getState();
let state = this.store.getState().completion;
if (JSON.stringify(this.prevState) === JSON.stringify(state)) {
return;
}

View file

@ -44,7 +44,7 @@ export default class FollowComponent {
update() {
let prevState = this.state;
this.state = this.store.getState();
this.state = this.store.getState().follow;
if (!prevState.enabled && this.state.enabled) {
this.create();
} else if (prevState.enabled && !this.state.enabled) {