Skip to content

Commit 0c655c2

Browse files
committed
Update create-react-context and let it pass through.
1 parent 9519e36 commit 0c655c2

File tree

3 files changed

+83
-50
lines changed

3 files changed

+83
-50
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import React from "react";
21
import createReactContext from "create-react-context";
32

4-
const RouterContext = React.createContext
5-
? React.createContext({})
6-
: createReactContext({});
3+
const RouterContext = createReactContext({});
74

85
export default RouterContext;

packages/react-router/package-lock.json

Lines changed: 81 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/react-router/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"react": ">=15"
3939
},
4040
"dependencies": {
41-
"create-react-context": "^0.1.6",
41+
"create-react-context": "^0.2.2",
4242
"history": "^4.7.2",
4343
"hoist-non-react-statics": "^2.5.0",
4444
"invariant": "^2.2.4",

0 commit comments

Comments
 (0)