diff options
Diffstat (limited to 'subprojects/frontend/src/RootStore.tsx')
-rw-r--r-- | subprojects/frontend/src/RootStore.tsx | 6 |
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 @@ | |||
1 | import { getLogger } from 'loglevel'; | 1 | import { getLogger } from 'loglevel'; |
2 | import { makeObservable, observable, runInAction } from 'mobx'; | 2 | import { makeAutoObservable, runInAction } from 'mobx'; |
3 | import React, { createContext, useContext } from 'react'; | 3 | import React, { createContext, useContext } from 'react'; |
4 | 4 | ||
5 | import type EditorStore from './editor/EditorStore'; | 5 | import 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 }) => { |