diff --git a/package.json b/package.json index 099b85d..a256c8d 100755 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "inert": "5.1.0", "node-notifier": "5.2.1", "react": "16.2.0", - "react-async-bootstrapper": "1.1.2", + "react-async-bootstrapper": "2.1.0", "react-async-component": "1.0.2", "react-dom": "16.2.0", "react-hot-loader": "3.1.3", diff --git a/src/client.jsx b/src/client.jsx index 8bb8ab8..df62ac9 100755 --- a/src/client.jsx +++ b/src/client.jsx @@ -7,7 +7,7 @@ import ReactDOM from 'react-dom'; import {createBrowserHistory} from 'history'; import {AppContainer as ReactHotLoader} from 'react-hot-loader'; import {AsyncComponentProvider} from 'react-async-component'; -import asyncBootstrapper from 'react-async-bootstrapper'; +import bootstrap from 'react-async-bootstrapper'; import RouterWrapper from './RouterWrapper'; import ProviderService from './services/ProviderService'; @@ -44,7 +44,7 @@ const renderApp = () => { ); }; -asyncBootstrapper(composeApp(RouterWrapper)).then(renderApp); +bootstrap(composeApp(RouterWrapper)).then(renderApp); if (module.hot) { module.hot.accept('./RouterWrapper', renderApp); diff --git a/src/server/controllers/ReactController.jsx b/src/server/controllers/ReactController.jsx index 18d2ba7..ffca275 100644 --- a/src/server/controllers/ReactController.jsx +++ b/src/server/controllers/ReactController.jsx @@ -1,6 +1,6 @@ import {renderToString} from 'react-dom/server'; import {AsyncComponentProvider, createAsyncContext} from 'react-async-component'; -import asyncBootstrapper from 'react-async-bootstrapper'; +import bootstrap from 'react-async-bootstrapper'; import serialize from 'serialize-javascript'; import path from 'path'; import fse from 'fs-extra'; @@ -34,7 +34,7 @@ class ReactController { this._html = (this._html === null) ? await this._loadHtmlFile() : this._html; - await asyncBootstrapper(app); + await bootstrap(app); const sagaDone = store.runSaga(rootSaga).done; diff --git a/yarn.lock b/yarn.lock index 8572407..4c5f38d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5890,11 +5890,11 @@ rc@^1.0.1, rc@^1.1.6, rc@^1.1.7: minimist "^1.2.0" strip-json-comments "~2.0.1" -react-async-bootstrapper@1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/react-async-bootstrapper/-/react-async-bootstrapper-1.1.2.tgz#3e255a9981b6fbac3553089846eb7a8632c47797" +react-async-bootstrapper@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/react-async-bootstrapper/-/react-async-bootstrapper-2.1.0.tgz#a3f593881bf5b262b06309eb9158c6c9fc5dc6fa" dependencies: - react-tree-walker "^2.1.3" + react-tree-walker "^4.0.2" react-async-component@1.0.2: version "1.0.2" @@ -5971,9 +5971,9 @@ react-router@4.2.0, react-router@^4.2.0: prop-types "^15.5.4" warning "^3.0.0" -react-tree-walker@^2.1.3: - version "2.1.3" - resolved "https://registry.yarnpkg.com/react-tree-walker/-/react-tree-walker-2.1.3.tgz#e781dd7ba9b5c50cc6300e3388b490f2b43b6295" +react-tree-walker@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/react-tree-walker/-/react-tree-walker-4.0.2.tgz#a50df477ba9f0559584d19944b669fefa2a5669f" react@16.2.0: version "16.2.0"