Skip to content

Commit 0c67899

Browse files
committed
fix: update useAppDispatch to use withTypes for improved type safety
1 parent 6a4a471 commit 0c67899

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/useAppDispatch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { useDispatch } from "react-redux";
22
import type { AppDispatch } from "../store";
33

4-
export const useAppDispatch = () => useDispatch<AppDispatch>();
4+
export const useAppDispatch = useDispatch.withTypes<AppDispatch>();

0 commit comments

Comments
 (0)