Skip to content

Commit

Permalink
Fix error message typo in useSelector ('You must pass a selector...). (
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixelwelder committed May 7, 2020
1 parent 2dc05a2 commit 95d7883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useSelector.js
Expand Up @@ -97,7 +97,7 @@ export function createSelectorHook(context = ReactReduxContext) {
: () => useContext(context)
return function useSelector(selector, equalityFn = refEquality) {
if (process.env.NODE_ENV !== 'production' && !selector) {
throw new Error(`You must pass a selector to useSelectors`)
throw new Error(`You must pass a selector to useSelector`)
}
const { store, subscription: contextSub } = useReduxContext()

Expand Down

0 comments on commit 95d7883

Please sign in to comment.