frontend/hooks/index.ts
2022-10-22 10:37:05 +03:00

6 lines
300 B
TypeScript

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