diff options
| author | Haishan <[email protected]> | 2019-08-29 22:53:13 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2019-08-29 22:53:13 +0800 |
| commit | f45d7e050669f1ea716a74872d7429f1ec1e48dc (patch) | |
| tree | 07545a2e3566bb1cca1f16cb4911e852cd9cb8bd /src/components/Root.js | |
| parent | 36034a7d2e8bb0072faf9e6241433b1617ffbf58 (diff) | |
chore: remove maxDuration prop on Suspense
Diffstat (limited to 'src/components/Root.js')
| -rw-r--r-- | src/components/Root.js | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/components/Root.js b/src/components/Root.js index 6f18b22..a538634 100644 --- a/src/components/Root.js +++ b/src/components/Root.js @@ -14,16 +14,20 @@ import './Root.css'; import s0 from './Root.module.css'; const Proxies = React.lazy(() => - import(/* webpackChunkName: "proxies" */ - /* webpackPrefetch: true */ - /* webpackPreload: true */ - './Proxies') + import( + /* webpackChunkName: "proxies" */ + /* webpackPrefetch: true */ + /* webpackPreload: true */ + './Proxies' + ) ); const Rules = React.lazy(() => - import(/* webpackChunkName: "rules" */ - /* webpackPrefetch: true */ - /* webpackPreload: true */ - './Rules') + import( + /* webpackChunkName: "rules" */ + /* webpackPrefetch: true */ + /* webpackPreload: true */ + './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} /> |
