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/stores/ServicesStore.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/stores/ServicesStore.ts') diff --git a/src/stores/ServicesStore.ts b/src/stores/ServicesStore.ts index 4c1b4116c..7812d5aee 100644 --- a/src/stores/ServicesStore.ts +++ b/src/stores/ServicesStore.ts @@ -1,5 +1,5 @@ import { shell } from 'electron'; -import { action, reaction, computed, observable } from 'mobx'; +import { action, reaction, computed, observable, makeObservable } from 'mobx'; import { debounce, remove } from 'lodash'; import ms from 'ms'; import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; @@ -67,6 +67,8 @@ export default class ServicesStore extends TypedStore { constructor(stores: Stores, api: ApiInterface, actions: Actions) { super(stores, api, actions); + makeObservable(this); + // Register action handlers this.actions.service.setActive.listen(this._setActive.bind(this)); this.actions.service.blurActive.listen(this._blurActive.bind(this)); -- cgit v1.2.3-54-g00ecf