blob: 3539fadbebc56f43f8b9750adb9772ecab42af26 [file] [log] [blame]
simond47ef9e2022-09-28 22:24:28 -04001import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';
simon07b4eb02022-09-29 17:50:26 -04002
3import type { AppDispatch, RootState } from './store';
idillond858c182022-09-16 13:18:26 -04004
5// Use throughout your app instead of plain `useDispatch` and `useSelector`
6export const useAppDispatch: () => AppDispatch = useDispatch;
7export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;