Skip to content

Commit 391b0f0

Browse files
authored
Merge pull request #107 from fs-webdev/develop
ACTUAL 2.0.1 release
2 parents 0202e16 + 136441c commit 391b0f0

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

packages/react-scripts/scripts/utils/frontierInit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function installFrontierDependencies(appPath, appName, answers, ownPath) {
6060
'@fs/zion-user',
6161
'@fs/zion-router',
6262
'@fs/zion-subnav',
63-
'@fs/zion-error-boundary',
63+
'@fs/zion-root',
6464
'@fs/zion-style-normalize',
6565
'http-proxy-middleware@0.19',
6666
'@emotion/core@10',

packages/react-scripts/template/src/index.js

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import React, { Suspense } from 'react'
1+
import React from 'react'
22
import ReactDOM from 'react-dom'
3-
import { UserProvider } from '@fs/zion-user'
4-
import RootErrorBoundary from '@fs/zion-error-boundary'
5-
import { I18nProvider, addTranslations } from '@fs/zion-locale'
3+
import Root from '@fs/zion-root'
4+
import { addTranslations } from '@fs/zion-locale'
65
import { Router, NotFound } from '@fs/zion-router'
76
import App from './components/App'
87
import * as serviceWorker from './serviceWorker'
@@ -13,18 +12,12 @@ addTranslations(translations)
1312
const base = window.SERVER_DATA ? new URL(window.SERVER_DATA.appPath).pathname : ''
1413

1514
const FrontierRoot = () => (
16-
<RootErrorBoundary>
17-
<Suspense fallback="Loading ...">
18-
<I18nProvider>
19-
<UserProvider>
20-
<Router>
21-
<App path={`${base}/*`} />
22-
<NotFound default />
23-
</Router>
24-
</UserProvider>
25-
</I18nProvider>
26-
</Suspense>
27-
</RootErrorBoundary>
15+
<Root>
16+
<Router>
17+
<App path={`${base}/*`} />
18+
<NotFound default />
19+
</Router>
20+
</Root>
2821
)
2922

3023
ReactDOM.render(<FrontierRoot />, document.getElementById('root'))

0 commit comments

Comments
 (0)