Skip to content

Commit

Permalink
Update jsdocs for hooks (#1295)
Browse files Browse the repository at this point in the history
* Make second argument to useSelector optional

* Update useDispatch jsdoc return
  • Loading branch information
trappar authored and timdorr committed Jun 11, 2019
1 parent 18bd1aa commit 4649f8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useDispatch.js
Expand Up @@ -5,7 +5,7 @@ import { useStore } from './useStore'
* might want to use this hook it is recommended to use `useActions` instead to bind
* action creators to the `dispatch` function.
*
* @returns {any} redux store's `dispatch` function
* @returns {any|function} redux store's `dispatch` function
*
* @example
*
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useSelector.js
Expand Up @@ -25,7 +25,7 @@ const refEquality = (a, b) => a === b
* whether the component needs to be re-rendered.
*
* @param {Function} selector the selector function
* @param {Function} equalityFn the function that will be used to determine equality
* @param {Function=} equalityFn the function that will be used to determine equality
*
* @returns {any} the selected state
*
Expand Down

0 comments on commit 4649f8b

Please sign in to comment.