We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04ca479 commit dcc2622Copy full SHA for dcc2622
docs/using-react-redux/usage-with-typescript.md
@@ -69,7 +69,7 @@ import type { RootState, AppDispatch } from './store'
69
70
// highlight-start
71
// Use throughout your app instead of plain `useDispatch` and `useSelector`
72
-export const useAppDispatch = useDispatch.withTypes<RootState>()
+export const useAppDispatch = useDispatch.withTypes<AppDispatch>()
73
export const useAppSelector = useSelector.withTypes<RootState>()
74
// highlight-end
75
```
0 commit comments