aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/RecipePreviewsStore.ts
diff options
context:
space:
mode:
authorLibravatar Ricardo Cino <ricardo@cino.io>2022-07-07 09:31:50 +0200
committerLibravatar GitHub <noreply@github.com>2022-07-07 09:31:50 +0200
commit71c52373f81cace664047edd19d9d289f45a4dff (patch)
tree69b3f1d45a8b3f1ceab9497ea3c96e9dc18e3166 /src/stores/RecipePreviewsStore.ts
parent6.0.0-nightly.91 [skip ci] (diff)
downloadferdium-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/RecipePreviewsStore.ts')
-rw-r--r--src/stores/RecipePreviewsStore.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stores/RecipePreviewsStore.ts b/src/stores/RecipePreviewsStore.ts
index b1d50c8b8..1c95e6b54 100644
--- a/src/stores/RecipePreviewsStore.ts
+++ b/src/stores/RecipePreviewsStore.ts
@@ -1,4 +1,5 @@
1import { action, computed, observable } from 'mobx'; 1import { action, computed, makeObservable, observable } from 'mobx';
2
2import { Actions } from '../actions/lib/actions'; 3import { Actions } from '../actions/lib/actions';
3import { ApiInterface } from '../api'; 4import { ApiInterface } from '../api';
4import Recipe from '../models/Recipe'; 5import Recipe from '../models/Recipe';
@@ -28,6 +29,8 @@ export default class RecipePreviewsStore extends TypedStore {
28 constructor(stores: Stores, api: ApiInterface, actions: Actions) { 29 constructor(stores: Stores, api: ApiInterface, actions: Actions) {
29 super(stores, api, actions); 30 super(stores, api, actions);
30 31
32 makeObservable(this);
33
31 // Register action handlers 34 // Register action handlers
32 this.actions.recipePreview.search.listen(this._search.bind(this)); 35 this.actions.recipePreview.search.listen(this._search.bind(this));
33 } 36 }