diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-08-27 13:02:22 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-08-27 14:50:27 +0200 |
commit | 072621cee0f858236163ce11d42eca5adb84d205 (patch) | |
tree | 701686d051cb3a8a75be9075d404508be093a2a2 /subprojects/frontend/src/index.tsx | |
parent | refactor(frontend): custom mutex implementation (diff) | |
download | refinery-072621cee0f858236163ce11d42eca5adb84d205.tar.gz refinery-072621cee0f858236163ce11d42eca5adb84d205.tar.zst refinery-072621cee0f858236163ce11d42eca5adb84d205.zip |
refactor(frontend): add eslint-plugin-mobx
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')); |