Skip to content

Commit 4db0bfe

Browse files
committed
Update create-react-context and let it pass through.
1 parent 0136d3d commit 4db0bfe

File tree

3 files changed

+83
-50
lines changed

3 files changed

+83
-50
lines changed
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

+81-45
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/react-router/package.json

+1-1
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)