chore: remove maxDuration prop on Suspense

This commit is contained in:
Haishan 2019-08-29 22:53:13 +08:00
parent 36034a7d2e
commit f45d7e0506

View file

@ -14,16 +14,20 @@ import './Root.css';
import s0 from './Root.module.css'; import s0 from './Root.module.css';
const Proxies = React.lazy(() => const Proxies = React.lazy(() =>
import(/* webpackChunkName: "proxies" */ import(
/* webpackChunkName: "proxies" */
/* webpackPrefetch: true */ /* webpackPrefetch: true */
/* webpackPreload: true */ /* webpackPreload: true */
'./Proxies') './Proxies'
)
); );
const Rules = React.lazy(() => const Rules = React.lazy(() =>
import(/* webpackChunkName: "rules" */ import(
/* webpackChunkName: "rules" */
/* webpackPrefetch: true */ /* webpackPrefetch: true */
/* webpackPreload: true */ /* webpackPreload: true */
'./Rules') './Rules'
)
); );
// testing... // testing...
@ -39,7 +43,7 @@ const Root = () => (
<APIDiscovery /> <APIDiscovery />
<Route path="/" render={props => <SideBar {...props} />} /> <Route path="/" render={props => <SideBar {...props} />} />
<div className={s0.content}> <div className={s0.content}>
<Suspense fallback={<Loading height="200px" />} maxDuration={10}> <Suspense fallback={<Loading height="200px" />}>
<Route exact path="/" render={() => <Home />} /> <Route exact path="/" render={() => <Home />} />
<Route exact path="/overview" render={() => <Home />} /> <Route exact path="/overview" render={() => <Home />} />
<Route exact path="/configs" component={Config} /> <Route exact path="/configs" component={Config} />