We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ba9924 commit d633baaCopy full SHA for d633baa
src/hooks/useDispatch.js
@@ -8,7 +8,7 @@ import { useStore } from './useStore'
8
* @example
9
*
10
* import React, { useCallback } from 'react'
11
- * import { useReduxDispatch } from 'react-redux'
+ * import { useDispatch } from 'react-redux'
12
13
* export const CounterComponent = ({ value }) => {
14
* const dispatch = useDispatch()
@@ -21,7 +21,7 @@ import { useStore } from './useStore'
21
* )
22
* }
23
*/
24
-export function useDispatch() {
+export function useDispatch () {
25
const store = useStore()
26
return store.dispatch
27
}
0 commit comments