aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/RecipesStore.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/RecipesStore.ts')
-rw-r--r--src/stores/RecipesStore.ts4
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 @@
1import { action, computed, observable } from 'mobx'; 1import { action, computed, makeObservable, observable } from 'mobx';
2import { readJSONSync } from 'fs-extra'; 2import { readJSONSync } from 'fs-extra';
3import semver from 'semver'; 3import 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));