diff options
Diffstat (limited to 'subprojects/frontend/src/index.tsx')
-rw-r--r-- | subprojects/frontend/src/index.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/subprojects/frontend/src/index.tsx b/subprojects/frontend/src/index.tsx index 3f06b332..8436c7ae 100644 --- a/subprojects/frontend/src/index.tsx +++ b/subprojects/frontend/src/index.tsx | |||
@@ -1,5 +1,6 @@ | |||
1 | import Box from '@mui/material/Box'; | 1 | import Box from '@mui/material/Box'; |
2 | import CssBaseline from '@mui/material/CssBaseline'; | 2 | import CssBaseline from '@mui/material/CssBaseline'; |
3 | import { configure } from 'mobx'; | ||
3 | import { SnackbarProvider } from 'notistack'; | 4 | import { SnackbarProvider } from 'notistack'; |
4 | import React, { Suspense, lazy } from 'react'; | 5 | import React, { Suspense, lazy } from 'react'; |
5 | import { createRoot } from 'react-dom/client'; | 6 | import { createRoot } from 'react-dom/client'; |
@@ -60,6 +61,11 @@ age(bob, bobAge). | |||
60 | scope Family = 1, Person += 5..10. | 61 | scope Family = 1, Person += 5..10. |
61 | `; | 62 | `; |
62 | 63 | ||
64 | configure({ | ||
65 | enforceActions: 'always', | ||
66 | reactionRequiresObservable: true, | ||
67 | }); | ||
68 | |||
63 | const rootStore = new RootStore(initialValue); | 69 | const rootStore = new RootStore(initialValue); |
64 | 70 | ||
65 | const App = lazy(() => import('./App.js')); | 71 | const App = lazy(() => import('./App.js')); |