chore: remove maxDuration prop on Suspense
This commit is contained in:
parent
36034a7d2e
commit
f45d7e0506
1 changed files with 13 additions and 9 deletions
|
@ -14,16 +14,20 @@ import './Root.css';
|
|||
import s0 from './Root.module.css';
|
||||
|
||||
const Proxies = React.lazy(() =>
|
||||
import(/* webpackChunkName: "proxies" */
|
||||
import(
|
||||
/* webpackChunkName: "proxies" */
|
||||
/* webpackPrefetch: true */
|
||||
/* webpackPreload: true */
|
||||
'./Proxies')
|
||||
'./Proxies'
|
||||
)
|
||||
);
|
||||
const Rules = React.lazy(() =>
|
||||
import(/* webpackChunkName: "rules" */
|
||||
import(
|
||||
/* webpackChunkName: "rules" */
|
||||
/* webpackPrefetch: true */
|
||||
/* webpackPreload: true */
|
||||
'./Rules')
|
||||
'./Rules'
|
||||
)
|
||||
);
|
||||
|
||||
// testing...
|
||||
|
@ -39,7 +43,7 @@ const Root = () => (
|
|||
<APIDiscovery />
|
||||
<Route path="/" render={props => <SideBar {...props} />} />
|
||||
<div className={s0.content}>
|
||||
<Suspense fallback={<Loading height="200px" />} maxDuration={10}>
|
||||
<Suspense fallback={<Loading height="200px" />}>
|
||||
<Route exact path="/" render={() => <Home />} />
|
||||
<Route exact path="/overview" render={() => <Home />} />
|
||||
<Route exact path="/configs" component={Config} />
|
||||
|
|
Loading…
Reference in a new issue