Commit b02804cd authored by AlexandrValgamov's avatar AlexandrValgamov
Browse files

Widget | feat: add hooks

parent 8c3f4cc9
Loading
Loading
Loading
Loading

src/hooks/index.ts

0 → 100644
+1 −0
Original line number Diff line number Diff line
export * from './use-app-store-hooks';
+6 −0
Original line number Diff line number Diff line
import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';

import { AppDispatch, RootState } from '@/store';

export const useAppDispatch = useDispatch.withTypes<AppDispatch>();
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;