blob: f9f22a6905a14ec12f930729d66e7595ee967656 [file] [log] [blame]
San3yuan4d0e8032025-04-04 17:21:40 +08001import { useDispatch, useSelector } from 'react-redux'
2import type { RootState, AppDispatch } from '../store'
3
4// Use throughout your app instead of plain `useDispatch` and `useSelector`
5export const useAppDispatch = useDispatch.withTypes<AppDispatch>()
6export const useAppSelector = useSelector.withTypes<RootState>()