aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/index.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-27 13:02:22 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-27 14:50:27 +0200
commit072621cee0f858236163ce11d42eca5adb84d205 (patch)
tree701686d051cb3a8a75be9075d404508be093a2a2 /subprojects/frontend/src/index.tsx
parentrefactor(frontend): custom mutex implementation (diff)
downloadrefinery-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.tsx6
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 @@
1import Box from '@mui/material/Box'; 1import Box from '@mui/material/Box';
2import CssBaseline from '@mui/material/CssBaseline'; 2import CssBaseline from '@mui/material/CssBaseline';
3import { configure } from 'mobx';
3import { SnackbarProvider } from 'notistack'; 4import { SnackbarProvider } from 'notistack';
4import React, { Suspense, lazy } from 'react'; 5import React, { Suspense, lazy } from 'react';
5import { createRoot } from 'react-dom/client'; 6import { createRoot } from 'react-dom/client';
@@ -60,6 +61,11 @@ age(bob, bobAge).
60scope Family = 1, Person += 5..10. 61scope Family = 1, Person += 5..10.
61`; 62`;
62 63
64configure({
65 enforceActions: 'always',
66 reactionRequiresObservable: true,
67});
68
63const rootStore = new RootStore(initialValue); 69const rootStore = new RootStore(initialValue);
64 70
65const App = lazy(() => import('./App.js')); 71const App = lazy(() => import('./App.js'));