We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a4a471 commit 0c67899Copy full SHA for 0c67899
1 file changed
src/hooks/useAppDispatch.ts
@@ -1,4 +1,4 @@
1
import { useDispatch } from "react-redux";
2
import type { AppDispatch } from "../store";
3
4
-export const useAppDispatch = () => useDispatch<AppDispatch>();
+export const useAppDispatch = useDispatch.withTypes<AppDispatch>();
0 commit comments