File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ const refEquality = (a, b) => a === b
20
20
* A hook to access the redux store's state. This hook takes a selector function
21
21
* as an argument. The selector is called with the store state.
22
22
*
23
- * This hook takes a dependencies array as an optional second argument,
24
- * which when passed ensures referential stability of the selector (this is primarily
25
- * useful if you provide a selector that memoizes values) .
23
+ * This hook takes an optional equality comparison function as the second parameter
24
+ * that allows you to customize the way the selected state is compared to determine
25
+ * whether the component needs to be re-rendered .
26
26
*
27
27
* @param {Function } selector the selector function
28
28
* @param {Function } equalityFn the function that will be used to determine equality
@@ -33,7 +33,6 @@ const refEquality = (a, b) => a === b
33
33
*
34
34
* import React from 'react'
35
35
* import { useSelector } from 'react-redux'
36
- * import { RootState } from './store'
37
36
*
38
37
* export const CounterComponent = () => {
39
38
* const counter = useSelector(state => state.counter)
You can’t perform that action at this time.
0 commit comments