Skip to content

Commit 39b825c

Browse files
committed
feat: replace create-react-context with the native React Context API
1 parent 58ac7b7 commit 39b825c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

packages/core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
},
3939
"dependencies": {
4040
"classnames": "^2.2.5",
41-
"create-react-context": "^0.2.3",
4241
"document-offset": "^1.0.4",
4342
"keycode": "^2.1.9",
4443
"lodash.omit": "^4.5.0",
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
// #FIXME: use React navive context API when upgraded to v16+
2-
import createReactContext from 'create-react-context';
1+
import React from 'react';
32

4-
const ListSpacingContext = createReactContext(true);
3+
const ListSpacingContext = React.createContext(true);
54

65
export default ListSpacingContext;

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5656,7 +5656,7 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4:
56565656
safe-buffer "^5.0.1"
56575657
sha.js "^2.4.8"
56585658

5659-
create-react-context@^0.2.1, create-react-context@^0.2.3:
5659+
create-react-context@^0.2.1:
56605660
version "0.2.3"
56615661
resolved "https://registry.yarnpkg.com/create-react-context/-/create-react-context-0.2.3.tgz#9ec140a6914a22ef04b8b09b7771de89567cb6f3"
56625662
integrity sha512-CQBmD0+QGgTaxDL3OX1IDXYqjkp2It4RIbcb99jS6AEg27Ga+a9G3JtK6SIu0HBwPLZlmwt9F7UwWA4Bn92Rag==

0 commit comments

Comments
 (0)