From 71c52373f81cace664047edd19d9d289f45a4dff Mon Sep 17 00:00:00 2001 From: Ricardo Cino Date: Thu, 7 Jul 2022 09:31:50 +0200 Subject: chore: Mobx & React-Router upgrade (#406) Co-authored-by: Vijay A --- src/webview/recipe.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/webview/recipe.js') 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 @@ /* eslint-disable import/first */ import { contextBridge, ipcRenderer } from 'electron'; import { join } from 'path'; -import { autorun, computed, observable } from 'mobx'; +import { autorun, computed, makeObservable, observable } from 'mobx'; import { pathExistsSync, readFileSync } from 'fs-extra'; import { debounce } from 'lodash'; @@ -154,6 +154,8 @@ class RecipeController { hasUpdatedBeforeRecipeLoaded = false; constructor() { + makeObservable(this); + this.initialize(); } -- cgit v1.2.3-54-g00ecf