venture-ui/src/hooks.ts
2023-01-31 16:38:09 -06:00

6 lines
272 B
TypeScript

import { TypedUseSelectorHook, useDispatch, useSelector } from "react-redux";
import type { RootState, AppDispatch } from "./store";
export const useAppDispatch: () => AppDispatch = useDispatch;
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;