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/RecipesStore.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/RecipesStore.ts')
-rw-r--r-- | src/stores/RecipesStore.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stores/RecipesStore.ts b/src/stores/RecipesStore.ts index 364d56dd2..25304e97c 100644 --- a/src/stores/RecipesStore.ts +++ b/src/stores/RecipesStore.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { action, computed, observable } from 'mobx'; | 1 | import { action, computed, makeObservable, observable } from 'mobx'; |
2 | import { readJSONSync } from 'fs-extra'; | 2 | import { readJSONSync } from 'fs-extra'; |
3 | import semver from 'semver'; | 3 | import semver from 'semver'; |
4 | 4 | ||
@@ -24,6 +24,8 @@ export default class RecipesStore extends TypedStore { | |||
24 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { | 24 | constructor(stores: Stores, api: ApiInterface, actions: Actions) { |
25 | super(stores, api, actions); | 25 | super(stores, api, actions); |
26 | 26 | ||
27 | makeObservable(this); | ||
28 | |||
27 | // Register action handlers | 29 | // Register action handlers |
28 | this.actions.recipe.install.listen(this._install.bind(this)); | 30 | this.actions.recipe.install.listen(this._install.bind(this)); |
29 | this.actions.recipe.update.listen(this._update.bind(this)); | 31 | this.actions.recipe.update.listen(this._update.bind(this)); |