traintrape-moi/client/hooks/useStore.ts

6 lines
243 B
TypeScript
Raw Normal View History

import { AppDispatch, RootState } from '@/utils/store'
import { useDispatch, useSelector } from 'react-redux'
export const useAppDispatch = useDispatch.withTypes<AppDispatch>()
export const useAppSelector = useSelector.withTypes<RootState>()