aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview
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/webview
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/webview')
-rw-r--r--src/webview/recipe.js4
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 */
3import { contextBridge, ipcRenderer } from 'electron'; 3import { contextBridge, ipcRenderer } from 'electron';
4import { join } from 'path'; 4import { join } from 'path';
5import { autorun, computed, observable } from 'mobx'; 5import { autorun, computed, makeObservable, observable } from 'mobx';
6import { pathExistsSync, readFileSync } from 'fs-extra'; 6import { pathExistsSync, readFileSync } from 'fs-extra';
7import { debounce } from 'lodash'; 7import { 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