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/webview/recipe.js | |
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/webview/recipe.js')
-rw-r--r-- | src/webview/recipe.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 3c8a5326f..102d93642 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -2,7 +2,7 @@ | |||
2 | /* eslint-disable import/first */ | 2 | /* eslint-disable import/first */ |
3 | import { contextBridge, ipcRenderer } from 'electron'; | 3 | import { contextBridge, ipcRenderer } from 'electron'; |
4 | import { join } from 'path'; | 4 | import { join } from 'path'; |
5 | import { autorun, computed, observable } from 'mobx'; | 5 | import { autorun, computed, makeObservable, observable } from 'mobx'; |
6 | import { pathExistsSync, readFileSync } from 'fs-extra'; | 6 | import { pathExistsSync, readFileSync } from 'fs-extra'; |
7 | import { debounce } from 'lodash'; | 7 | import { debounce } from 'lodash'; |
8 | 8 | ||
@@ -154,6 +154,8 @@ class RecipeController { | |||
154 | hasUpdatedBeforeRecipeLoaded = false; | 154 | hasUpdatedBeforeRecipeLoaded = false; |
155 | 155 | ||
156 | constructor() { | 156 | constructor() { |
157 | makeObservable(this); | ||
158 | |||
157 | this.initialize(); | 159 | this.initialize(); |
158 | } | 160 | } |
159 | 161 | ||