Skip to content

Commit 21eb457

Browse files
uprev react-dom
1 parent c651abc commit 21eb457

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"raven-js": "^3.22.0",
4545
"react": "^16.8.6",
4646
"react-app-rewired": "^1.6.2",
47-
"react-dom": "^16.2.1",
47+
"react-dom": "^16.8.6",
4848
"react-router-dom": "^5.0.1",
4949
"react-scripts": "1.1.5",
5050
"react-select": "~1.2.1",

src/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,8 @@ window.socket = async function (public_key, config) {
223223

224224
const Router = config.router_mode === 'history' ? BrowserRouter : HashRouter
225225

226-
const router = ReactDOM.render(<Router><App
227-
error={error}
228-
public_key={public_key}
229-
url_generator={url_generator}
230-
config={config}/></Router>, el)
226+
const conf = {error, public_key, url_generator, config}
227+
const router = ReactDOM.render(<Router><App {...conf}/></Router>, el)
231228
// for external use and compatibility with old socket
232229
return {
233230
goto: path => {

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7364,15 +7364,15 @@ react-dev-utils@^5.0.2:
73647364
strip-ansi "3.0.1"
73657365
text-table "0.2.0"
73667366

7367-
react-dom@^16.2.1:
7368-
version "16.2.1"
7369-
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.2.1.tgz#5cfb32f66267ece7b3850466bf3b219d4911fc1a"
7370-
integrity sha512-0ujGgYnpX0GlaAjUfwU7ddy0DjuzPmTHHi2SlPolGv7hAyUpK7XA7WZcxit5ZcU7cW5QU1HJjlS3eMn42tSfYQ==
7367+
react-dom@^16.8.6:
7368+
version "16.8.6"
7369+
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.6.tgz#71d6303f631e8b0097f56165ef608f051ff6e10f"
7370+
integrity sha512-1nL7PIq9LTL3fthPqwkvr2zY7phIPjYrT0jp4HjyEQrEROnw4dG41VVwi/wfoCneoleqrNX7iAD+pXebJZwrwA==
73717371
dependencies:
7372-
fbjs "^0.8.16"
73737372
loose-envify "^1.1.0"
73747373
object-assign "^4.1.1"
7375-
prop-types "^15.6.0"
7374+
prop-types "^15.6.2"
7375+
scheduler "^0.13.6"
73767376

73777377
react-error-overlay@^4.0.1:
73787378
version "4.0.1"

0 commit comments

Comments
 (0)