loader: error handling

This commit is contained in:
muerwre 2018-12-11 12:44:10 +07:00
parent 71a0aed9aa
commit 1c014ec9fb
5 changed files with 102 additions and 12 deletions

View file

@ -35,9 +35,12 @@ import '$styles/main.less';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { configureStore } from '$redux/store';
import { pushLoaderState } from '$utils/history';
const { store, persistor } = configureStore();
pushLoaderState(10);
export const Index = () => (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>