aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/RootStore.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/frontend/src/RootStore.tsx')
-rw-r--r--subprojects/frontend/src/RootStore.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/subprojects/frontend/src/RootStore.tsx b/subprojects/frontend/src/RootStore.tsx
index e08dd750..5aa580d1 100644
--- a/subprojects/frontend/src/RootStore.tsx
+++ b/subprojects/frontend/src/RootStore.tsx
@@ -1,5 +1,5 @@
1import { getLogger } from 'loglevel'; 1import { getLogger } from 'loglevel';
2import { makeObservable, observable, runInAction } from 'mobx'; 2import { makeAutoObservable, runInAction } from 'mobx';
3import React, { createContext, useContext } from 'react'; 3import React, { createContext, useContext } from 'react';
4 4
5import type EditorStore from './editor/EditorStore'; 5import type EditorStore from './editor/EditorStore';
@@ -14,8 +14,8 @@ export default class RootStore {
14 14
15 constructor(initialValue: string) { 15 constructor(initialValue: string) {
16 this.themeStore = new ThemeStore(); 16 this.themeStore = new ThemeStore();
17 makeObservable(this, { 17 makeAutoObservable(this, {
18 editorStore: observable, 18 themeStore: false,
19 }); 19 });
20 import('./editor/EditorStore') 20 import('./editor/EditorStore')
21 .then(({ default: EditorStore }) => { 21 .then(({ default: EditorStore }) => {