Skip to content

Commit 8a645be

Browse files
authored
Update hooks.md
1 parent 7e653f8 commit 8a645be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export const CounterComponent = ({ value }) => {
268268
const dispatch = useDispatch()
269269
const incrementCounter = useCallback(
270270
() => dispatch({ type: 'increment-counter' }),
271-
[]
271+
[dispatch]
272272
)
273273

274274
return (

0 commit comments

Comments
 (0)