diff options
author | Ricardo Cino <ricardo@cino.io> | 2022-07-07 09:31:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-07 09:31:50 +0200 |
commit | 71c52373f81cace664047edd19d9d289f45a4dff (patch) | |
tree | 69b3f1d45a8b3f1ceab9497ea3c96e9dc18e3166 /src/stores/ServicesStore.ts | |
parent | 6.0.0-nightly.91 [skip ci] (diff) | |
download | ferdium-app-71c52373f81cace664047edd19d9d289f45a4dff.tar.gz ferdium-app-71c52373f81cace664047edd19d9d289f45a4dff.tar.zst ferdium-app-71c52373f81cace664047edd19d9d289f45a4dff.zip |
chore: Mobx & React-Router upgrade (#406)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/stores/ServicesStore.ts')
-rw-r--r-- | src/stores/ServicesStore.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stores/ServicesStore.ts b/src/stores/ServicesStore.ts index 4c1b4116c..7812d5aee 100644 --- a/src/stores/ServicesStore.ts +++ b/src/stores/ServicesStore.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { shell } from 'electron'; | 1 | import { shell } from 'electron'; |
2 | import { action, reaction, computed, observable } from 'mobx'; | 2 | import { action, reaction, computed, observable, makeObservable } from 'mobx'; |
3 | import { debounce, remove } from 'lodash'; | 3 | import { debounce, remove } from 'lodash'; |
4 | import ms from 'ms'; | 4 | import ms from 'ms'; |
5 | import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; | 5 | import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; |
@@ -67,6 +67,8 @@ export default class ServicesStore extends TypedStore { | |||
67 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { | 67 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { |
68 | super(stores, api, actions); | 68 | super(stores, api, actions); |
69 | 69 | ||
70 | makeObservable(this); | ||
71 | |||
70 | // Register action handlers | 72 | // Register action handlers |
71 | this.actions.service.setActive.listen(this._setActive.bind(this)); | 73 | this.actions.service.setActive.listen(this._setActive.bind(this)); |
72 | this.actions.service.blurActive.listen(this._blurActive.bind(this)); | 74 | this.actions.service.blurActive.listen(this._blurActive.bind(this)); |