Skip to content

Commit 49f2601

Browse files
committed
Remove Redux specific hook snippets
1 parent 5b046c1 commit 49f2601

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ React Hooks Snippets is a [Visual Studio Code](https://code.visualstudio.com/) e
2828
| `urh` | `useRef` |
2929
| `uihh` | `useImperativeHandle` |
3030
| `urdh` | `useReducer` |
31-
| `irrh` | import react redux hooks |
32-
| `uss` | `useSelector` |
33-
| `usdf` | `useDispatch` |
34-
| `usd` | then use your `dispatch` |
3531

3632

3733
## Add to your project

snippets/snippets.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -134,29 +134,5 @@
134134
"const [${1:state},${2: dispatch}] = useReducer(${3:reducer}, ${4:initialArg}, ${5:init});"
135135
],
136136
"description": "React useReducer() hook"
137-
},
138-
"import react-redux hooks": {
139-
"prefix": "irrh",
140-
"body": [
141-
"import { useSelector, useDispatch } from 'react-redux';"
142-
]
143-
},
144-
"useSelector": {
145-
"prefix": "uss",
146-
"body": [
147-
"const $1 = useSelector(state => state.$1);"
148-
]
149-
},
150-
"useDispatchFunction": {
151-
"prefix": "usdf",
152-
"body": [
153-
"const $1 = useDispatch($2);$3"
154-
]
155-
},
156-
"useDispatch": {
157-
"prefix": "usd",
158-
"body": [
159-
"const $1 = $2 => dispatch($3);"
160-
]
161137
}
162138
}

0 commit comments

Comments
 (0)