blob: 6875ea747c01b245011b8cedeadb2fa4cbcb5298 [file] [log] [blame]
idillond858c182022-09-16 13:18:26 -04001import { TypedUseSelectorHook, useDispatch, useSelector } from "react-redux";
2import type { RootState, AppDispatch } from "./store";
3
4// Use throughout your app instead of plain `useDispatch` and `useSelector`
5export const useAppDispatch: () => AppDispatch = useDispatch;
6export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;