single reducer
This commit is contained in:
parent
6594841b1d
commit
79a4a805f6
6 changed files with 14 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Reference in a new issue