Skip to content

Commit 0e8fe01

Browse files
author
Zack Jordan
committed
Fix error message typo in useSelector ('You must pass a selector...).
1 parent 3c56078 commit 0e8fe01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useSelector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function createSelectorHook(context = ReactReduxContext) {
9797
: () => useContext(context)
9898
return function useSelector(selector, equalityFn = refEquality) {
9999
if (process.env.NODE_ENV !== 'production' && !selector) {
100-
throw new Error(`You must pass a selector to useSelectors`)
100+
throw new Error(`You must pass a selector to useSelector`)
101101
}
102102
const { store, subscription: contextSub } = useReduxContext()
103103

0 commit comments

Comments
 (0)