mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
removed redux completely
This commit is contained in:
parent
26e6d8d41b
commit
a4bb07e9cf
323 changed files with 2464 additions and 3348 deletions
|
@ -1,23 +1,15 @@
|
|||
import * as React from 'react';
|
||||
import { render } from 'react-dom';
|
||||
import { Provider } from 'react-redux';
|
||||
import { PersistGate } from 'redux-persist/integration/react';
|
||||
import { configureStore } from '~/redux/store';
|
||||
import { App } from '~/containers/App';
|
||||
import '~/styles/main.scss';
|
||||
import { getMOBXStore } from '~/store';
|
||||
import { StoreContextProvider } from '~/utils/context/StoreContextProvider';
|
||||
|
||||
const { store, persistor } = configureStore();
|
||||
const mobxStore = getMOBXStore();
|
||||
|
||||
render(
|
||||
<StoreContextProvider store={mobxStore}>
|
||||
<Provider store={store}>
|
||||
<PersistGate loading={null} persistor={persistor}>
|
||||
<App />
|
||||
</PersistGate>
|
||||
</Provider>
|
||||
<App />
|
||||
</StoreContextProvider>,
|
||||
document.getElementById('app')
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue